Removed cask_reason from missing_formula.reason

- It won't output anything during a failed 'brew install'
- There's a seperate call to MissingFormula.cask_reason
  when 'brew info' is executed on a cask.
This commit is contained in:
Zach Auten 2019-03-21 17:35:38 -04:00
parent 63a0aa92d1
commit 517083474a
2 changed files with 2 additions and 3 deletions

View File

@ -89,7 +89,7 @@ module Homebrew
end
ofail e.message
# No formula with this name, try a missing formula lookup
if (reason = MissingFormula.reason(f))
if (reason = MissingFormula.reason(f) || MissingFormula.cask_reason(f))
$stderr.puts reason
end
end

View File

@ -7,8 +7,7 @@ module Homebrew
module MissingFormula
class << self
def reason(name, silent: false)
cask_reason(name, silent: silent) || blacklisted_reason(name) ||
tap_migration_reason(name) || deleted_reason(name, silent: silent)
blacklisted_reason(name) || tap_migration_reason(name) || deleted_reason(name, silent: silent)
end
def blacklisted_reason(name)