diff options
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) |
