Skip to content

Commit

Permalink
account for the possibility that winpthread-1.dll doesn't exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman authored Jan 31, 2017
1 parent 29e46b9 commit 9bee07c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ if is_windows()
dlls_to_update = Compat.String[]
for lib in dlls
local sha_current, sha_new
open(joinpath(JULIA_HOME, lib * ".dll")) do f
sha_current = sha256(f)
if isfile(joinpath(JULIA_HOME, lib * ".dll"))
open(joinpath(JULIA_HOME, lib * ".dll")) do f
sha_current = sha256(f)
end
else
sha_current = UInt8[]
end
open(joinpath(winrpm_bin, lib * ".dll")) do f
sha_new = sha256(f)
Expand Down

0 comments on commit 9bee07c

Please sign in to comment.