From d7b6230aed1a277905605632d91868d89543af1a Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sun, 3 Jan 2016 15:11:55 -0800 Subject: [PATCH] download_strategy: untar verbosely when --verbose is present Closes Homebrew/homebrew#47555. Closes Homebrew/homebrew#47649. Signed-off-by: Baptiste Fontaine --- Library/Homebrew/download_strategy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 74336c6ae2..057deadad5 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) }