Skip to content

Commit

Permalink
use src.tar.gz for all tarballs so that new versions overwrite the ol…
Browse files Browse the repository at this point in the history
…d ones (#55)
  • Loading branch information
stevengj authored May 17, 2018
1 parent a605135 commit c4997aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if unsatisfied || forcecompile
# so that it is not overwritten by BinaryBuilder downloads or vice-versa.
libname = "libblosc_from_source"
products = [ LibraryProduct(prefix, [libname], :libblosc) ]
source_path = joinpath(prefix, "downloads", basename(source_url))
source_path = joinpath(prefix, "downloads", "src.tar.gz")
if !isfile(source_path) || !verify(source_path, source_hash; verbose=verbose) || !satisfied(products[1]; verbose=verbose)
compile(libname, source_url, source_hash, prefix=prefix, verbose=verbose)
end
Expand Down
2 changes: 1 addition & 1 deletion deps/compile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using Compat.Libdl: dlext

function compile(libname, tarball_url, hash; prefix=BinaryProvider.global_prefix, verbose=false)
# download to tarball_path
tarball_path = joinpath(prefix, "downloads", basename(tarball_url))
tarball_path = joinpath(prefix, "downloads", "src.tar.gz")
download_verify(tarball_url, hash, tarball_path; force=true, verbose=verbose)

# unpack into source_path
Expand Down

0 comments on commit c4997aa

Please sign in to comment.