diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index c6f18f70381640df06d775608a036feeb6d7ba4b..064c422245c4a65cea51ef7a7dc236bdddf53745 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.