CurlDownloadStrategy: use with_system_path to locate tar
Closes Homebrew/homebrew#20316. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
4412df2c00
commit
fa7291f21b
@ -115,7 +115,9 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
|
|||||||
chdir
|
chdir
|
||||||
when :xz
|
when :xz
|
||||||
raise "You must install XZutils: brew install xz" unless which "xz"
|
raise "You must install XZutils: brew install xz" unless which "xz"
|
||||||
safe_system "xz -dc \"#{@tarball_path}\" | /usr/bin/tar xf -"
|
with_system_path {
|
||||||
|
safe_system "#{Formula.factory('xz').bin}/xz -dc \"#{@tarball_path}\" | tar xf -"
|
||||||
|
}
|
||||||
chdir
|
chdir
|
||||||
when :pkg
|
when :pkg
|
||||||
safe_system '/usr/sbin/pkgutil', '--expand', @tarball_path, File.basename(@url)
|
safe_system '/usr/sbin/pkgutil', '--expand', @tarball_path, File.basename(@url)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user