From aa9950282ffc424210685396329235e6c1e2fb69 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 21 Oct 2019 14:03:50 +0200 Subject: [PATCH] bottle: set bottle.cellar to old_spec.cellar if deleting mismatch Co-Authored-By: Mike McQuaid --- Library/Homebrew/dev-cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 2c3c940e66..2d7f86ecdf 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -371,7 +371,7 @@ module Homebrew (old_spec.cellar == cellar && [:any, :any_skip_relocation].include?(bottle.cellar)) mismatches.delete(:cellar) - bottle.cellar :any + bottle.cellar old_spec.cellar end unless mismatches.empty? bottle_path.unlink if bottle_path.exist?