Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit c2803c9

Browse files
RandomString123nalimilan
authored andcommitted
Fix issue with .7 where 7zip extracts the file without the noarch%2F on it (#141)
1 parent b6a1418 commit c2803c9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/WinRPM.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,13 @@ function do_install(package::Package)
464464
write(f, data[1])
465465
end
466466
info("Extracting: ", name)
467-
cpio = splitext(path2)[1]*".cpio"
467+
468+
if VERSION < v"0.7.0-DEV.2181"
469+
cpio = splitext(path2)[1]*".cpio"
470+
else
471+
cpio = splitext(joinpath(cache, escape(basename(path))))[1] * ".cpio"
472+
end
473+
468474
local err = nothing
469475
for cmd = [`$exe7z x -y $path2 -o$cache`, `$exe7z x -y $cpio -o$installdir`]
470476
(out, pc) = open(cmd, "r")

0 commit comments

Comments
 (0)