diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 0ac94a40c..0d9943a07 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -189,7 +189,12 @@ class FormulaInstaller        begin          install_relocation_tools unless formula.bottle_specification.skip_relocation?          pour -      rescue => e +      rescue Exception => e +        # any exceptions must leave us with nothing installed +        ignore_interrupts do +          formula.prefix.rmtree if formula.prefix.directory? +          formula.rack.rmdir_if_possible +        end          raise if ARGV.homebrew_developer?          @pour_failed = true          onoe e.message  | 
