aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorShaun Jackman2013-06-06 15:01:38 -0700
committerJack Nagel2013-06-07 16:35:14 -0500
commitfa7291f21b0fa7bc43a38cfbe2df38ba9ad449a8 (patch)
tree3c7fe77a65cbedda26df5b14ab660173eeda9a64 /Library
parent4412df2c00f52891afe792697396d9c03056101b (diff)
downloadbrew-fa7291f21b0fa7bc43a38cfbe2df38ba9ad449a8.tar.bz2
CurlDownloadStrategy: use with_system_path to locate tar
Closes Homebrew/homebrew#20316. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 90fa724dc..b615fc2c9 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -115,7 +115,9 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
chdir
when :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
when :pkg
safe_system '/usr/sbin/pkgutil', '--expand', @tarball_path, File.basename(@url)