install: immediately print FormulaUnavailableError.
This commit is contained in:
parent
e55f3a0cc5
commit
c458ffbd24
@ -206,12 +206,16 @@ module Homebrew
|
|||||||
# formula was found, but there's a problem with its implementation).
|
# formula was found, but there's a problem with its implementation).
|
||||||
ofail e.message
|
ofail e.message
|
||||||
rescue FormulaUnavailableError => e
|
rescue FormulaUnavailableError => e
|
||||||
if (reason = Homebrew::MissingFormula.reason(e.name))
|
if e.name == "updog"
|
||||||
ofail "#{e.message}\n#{reason}"
|
|
||||||
elsif e.name == "updog"
|
|
||||||
ofail "What's updog?"
|
ofail "What's updog?"
|
||||||
else
|
return
|
||||||
|
end
|
||||||
|
|
||||||
ofail e.message
|
ofail e.message
|
||||||
|
if (reason = Homebrew::MissingFormula.reason(e.name))
|
||||||
|
$stderr.puts reason
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
query = query_regexp(e.name)
|
query = query_regexp(e.name)
|
||||||
|
|
||||||
@ -246,7 +250,6 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def check_ppc
|
def check_ppc
|
||||||
case Hardware::CPU.type
|
case Hardware::CPU.type
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user