diff options
| author | Shaun Jackman | 2013-06-06 15:01:38 -0700 |
|---|---|---|
| committer | Jack Nagel | 2013-06-07 16:35:14 -0500 |
| commit | fa7291f21b0fa7bc43a38cfbe2df38ba9ad449a8 (patch) | |
| tree | 3c7fe77a65cbedda26df5b14ab660173eeda9a64 /Library | |
| parent | 4412df2c00f52891afe792697396d9c03056101b (diff) | |
| download | brew-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.rb | 4 |
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) |
