aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-11-17 23:41:03 +0800
committerXu Cheng2015-11-17 23:51:11 +0800
commit39c9ce628fa7e9e9c079c27efbcd23178be231f7 (patch)
treeafc8ae43e8fbf315dc2146e002ee595dfd422646
parent74c0b1c56b33e6e3f8830584151e28054b68118a (diff)
downloadbrew-39c9ce628fa7e9e9c079c27efbcd23178be231f7.tar.bz2
FormulaInstaller: don't try to build from source for interrupt
Closes Homebrew/homebrew#46078. Signed-off-by: Xu Cheng <xucheng@me.com>
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 786927d4a..5108958ad 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -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."