diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index c6f18f7038..064c422245 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -38,6 +38,7 @@ class AbstractDownloadStrategy @version = version @cache = meta.fetch(:cache, HOMEBREW_CACHE) @meta = meta + @quiet = false extend Pourable if meta[:bottle] end @@ -55,6 +56,10 @@ class AbstractDownloadStrategy @quiet = true end + def quiet? + Context.current.quiet? || @quiet + end + # Unpack {#cached_location} into the current working directory, and possibly # chdir into the newly-unpacked directory. # Unlike {Resource#stage}, this does not take a block.