Skip to content

Commit e7830b5

Browse files
authored
Merge pull request #2394 from JuliaLang/fe/backports-release-1.6.0
Backports Pkg 1.6.0
2 parents 9adb32b + 6fc2084 commit e7830b5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
2121
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
2222
Tar = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
2323
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
24+
p7zip_jll = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
2425

2526
[extras]
2627
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/PlatformEngines.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,24 @@ module PlatformEngines
77
using SHA, Downloads, Tar
88
import ...Pkg: Pkg, TOML, pkg_server, depots1, can_fancyprint
99
using ..MiniProgressBars
10-
using Base.BinaryPlatforms
10+
using Base.BinaryPlatforms, p7zip_jll
1111

1212
export probe_platform_engines!, verify, unpack, package, download_verify_unpack
1313

1414
const EXE7Z_LOCK = ReentrantLock()
1515
const EXE7Z = Ref{String}()
1616

1717
function exe7z()
18+
# If the JLL is available, use the wrapper function defined in there
19+
if p7zip_jll.is_available()
20+
return p7zip_jll.p7zip()
21+
end
22+
1823
lock(EXE7Z_LOCK) do
1924
if !isassigned(EXE7Z)
2025
EXE7Z[] = find7z()
2126
end
22-
return EXE7Z[]
27+
return Cmd([EXE7Z[]])
2328
end
2429
end
2530

0 commit comments

Comments
 (0)