From c798c3c538faed5020c59eea213ab218dbc025b4 Mon Sep 17 00:00:00 2001 From: nandahkrishna Date: Sat, 3 Oct 2020 22:25:03 +0530 Subject: [PATCH] Fixed quiet for download_strategy --- Library/Homebrew/download_strategy.rb | 5 +++++ 1 file changed, 5 insertions(+) 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.