bottle: clean up after interrupts
This commit is contained in:
parent
c3ac88d8c7
commit
4afd633570
@ -160,9 +160,13 @@ module Homebrew extend self
|
|||||||
|
|
||||||
relocatable = !keg_contains(prefix_check, keg)
|
relocatable = !keg_contains(prefix_check, keg)
|
||||||
relocatable = !keg_contains(HOMEBREW_CELLAR, keg) && relocatable
|
relocatable = !keg_contains(HOMEBREW_CELLAR, keg) && relocatable
|
||||||
|
rescue Interrupt
|
||||||
|
ignore_interrupts { bottle_path.unlink if bottle_path.exist? }
|
||||||
ensure
|
ensure
|
||||||
keg.relocate_install_names Keg::PREFIX_PLACEHOLDER, prefix,
|
ignore_interrupts do
|
||||||
Keg::CELLAR_PLACEHOLDER, cellar, :keg_only => f.keg_only?
|
keg.relocate_install_names Keg::PREFIX_PLACEHOLDER, prefix,
|
||||||
|
Keg::CELLAR_PLACEHOLDER, cellar, :keg_only => f.keg_only?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user