Skip to content

Commit

Permalink
Fix 7zip path for julia 1.3 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDunnNZ authored and nalimilan committed Dec 7, 2019
1 parent 03e3556 commit 32c2fe0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/WinRPM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,15 @@ function do_install(packages::Packages)
end
end

const exe7z = iswindows() ? joinpath(BINDIR, "7z.exe") : "7z"
const exe7z = if iswindows()
if isdefined(Base, :LIBEXECDIR)
joinpath(BINDIR, Base.LIBEXECDIR, "7z.exe")
else
joinpath(BINDIR, "7z.exe")
end
else
"7z"
end

function do_install(package::Package)
name = names(package)
Expand Down

0 comments on commit 32c2fe0

Please sign in to comment.