Skip to content

Commit

Permalink
Code loading: do the "skipping mtime check for stdlib" check in both …
Browse files Browse the repository at this point in the history
…branches on the value of `ispath(f)`
  • Loading branch information
DilumAluthge committed Aug 15, 2023
1 parent fd38d50 commit 239a1d7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3117,7 +3117,15 @@ end
end
for chi in includes
f, ftime_req = chi.filename, chi.mtime
if !ispath(f)
if ispath(f)
# `ispath(f)` is true
if isfile(f) && startswith(f, Sys.STDLIB)
# mtime is changed by extraction
@debug "Skipping mtime check for file $f used by $cachefile, since it is a stdlib"
continue
end
else
# `ispath(f)` is false
_f = fixup_stdlib_path(f)
if isfile(_f) && startswith(_f, Sys.STDLIB)
# mtime is changed by extraction
Expand Down

0 comments on commit 239a1d7

Please sign in to comment.