Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Fix install function #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BinaryProvider.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module BinaryProvider

using Libdl, Logging
using Pkg, Pkg.PlatformEngines, Pkg.BinaryPlatforms
import Pkg.PlatformEngines: package, download
import Pkg.PlatformEngines: package, download, download_verify, list_tarball_files
import Pkg.BinaryPlatforms: Linux
export platform_key, platform_key_abi, platform_dlext, valid_dl_path,
triplet, select_platform, platforms_match,
Expand Down
5 changes: 4 additions & 1 deletion src/Prefix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,10 @@ function install(tarball_url::AbstractString,
end

# Unpack the tarball into prefix
unpack(tarball_path, prefix.path; verbose=verbose)
t = tempname()
unpack(tarball_path, t; verbose=verbose)
foreach(f -> mv(joinpath(t, f), joinpath(prefix.path, f)), readdir(t))
rm(t, recursive = true)

# Save installation manifest
mkpath(dirname(manifest_path))
Expand Down