FormulaInstaller: don't try to build from source for interrupt

Closes Homebrew/homebrew#46078.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-11-17 23:41:03 +08:00
parent 74c0b1c56b
commit 39c9ce628f

View File

@ -200,7 +200,7 @@ class FormulaInstaller
formula.prefix.rmtree if formula.prefix.directory?
formula.rack.rmdir_if_possible
end
raise if ARGV.homebrew_developer?
raise if ARGV.homebrew_developer? || e.is_a?(Interrupt)
@pour_failed = true
onoe e.message
opoo "Bottle installation failed: building from source."