bottle: set bottle.cellar to old_spec.cellar if deleting mismatch
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
e19fab86c0
commit
aa9950282f
@ -371,7 +371,7 @@ module Homebrew
|
|||||||
(old_spec.cellar == cellar &&
|
(old_spec.cellar == cellar &&
|
||||||
[:any, :any_skip_relocation].include?(bottle.cellar))
|
[:any, :any_skip_relocation].include?(bottle.cellar))
|
||||||
mismatches.delete(:cellar)
|
mismatches.delete(:cellar)
|
||||||
bottle.cellar :any
|
bottle.cellar old_spec.cellar
|
||||||
end
|
end
|
||||||
unless mismatches.empty?
|
unless mismatches.empty?
|
||||||
bottle_path.unlink if bottle_path.exist?
|
bottle_path.unlink if bottle_path.exist?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user