Fixed quiet for download_strategy

This commit is contained in:
nandahkrishna 2020-10-03 22:25:03 +05:30
parent 20dde0b313
commit c798c3c538
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA

View File

@ -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.