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:
parent
63a0aa92d1
commit
517083474a
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user