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
commitd7f858ff0434afa7066793bcfc0ace979b9521d2 (patch)
treeca682cf1066628040c1b5d6b5e7b4e54871c9b99 /Library
parent9c7cf3667bc420d01e03cd55f58c9c6375549193 (diff)
downloadhomebrew-d7f858ff0434afa7066793bcfc0ace979b9521d2.tar.bz2
CurlDownloadStrategy: use with_system_path to locate tar
Closes #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)