bottle: clean up after interrupts

This commit is contained in:
Jack Nagel 2013-12-09 17:35:05 -06:00
parent c3ac88d8c7
commit 4afd633570

View File

@ -160,9 +160,13 @@ module Homebrew extend self
relocatable = !keg_contains(prefix_check, keg)
relocatable = !keg_contains(HOMEBREW_CELLAR, keg) && relocatable
rescue Interrupt
ignore_interrupts { bottle_path.unlink if bottle_path.exist? }
ensure
keg.relocate_install_names Keg::PREFIX_PLACEHOLDER, prefix,
Keg::CELLAR_PLACEHOLDER, cellar, :keg_only => f.keg_only?
ignore_interrupts do
keg.relocate_install_names Keg::PREFIX_PLACEHOLDER, prefix,
Keg::CELLAR_PLACEHOLDER, cellar, :keg_only => f.keg_only?
end
end
end