diff options
| author | Zhiming Wang | 2016-01-03 15:11:55 -0800 |
|---|---|---|
| committer | Baptiste Fontaine | 2016-01-04 11:10:32 +0100 |
| commit | d7b6230aed1a277905605632d91868d89543af1a (patch) | |
| tree | 3540727dab3847799827c324154492f797e2393a /Library | |
| parent | e7738d067f9ea0e08f2f2f591c4203676e37ba96 (diff) | |
| download | brew-d7b6230aed1a277905605632d91868d89543af1a.tar.bz2 | |
download_strategy: untar verbosely when --verbose is present
Closes Homebrew/homebrew#47555.
Closes Homebrew/homebrew#47649.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 74336c6ae..057deadad 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -184,7 +184,8 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy with_system_path { buffered_write("bunzip2") } when :gzip, :bzip2, :compress, :tar # Assume these are also tarred - with_system_path { safe_system "tar", "xf", cached_location } + tar_flags = ARGV.verbose? ? "xvf" : "xf" + with_system_path { safe_system "tar", tar_flags, cached_location } chdir when :xz with_system_path { pipe_to_tar(xzpath) } |
