diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 68cb0bf16c..c15ea4bd63 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -53,42 +53,46 @@ class AbstractDownloadStrategy end class CurlDownloadStrategy '-qq'}, @dl + quiet_safe_system '/usr/bin/unzip', {:quiet_flag => '-qq'}, @tarball_path chdir when /^\037\213/, /^BZh/, /^\037\235/ # gzip/bz2/compress compressed # TODO check if it's really a tar archive - safe_system '/usr/bin/tar', 'xf', @dl + safe_system '/usr/bin/tar', 'xf', @tarball_path chdir else # we are assuming it is not an archive, use original filename @@ -98,7 +102,7 @@ class CurlDownloadStrategy