diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 51b597ce76..2c3c940e66 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -367,7 +367,9 @@ module Homebrew mismatches = [:root_url, :prefix, :cellar, :rebuild].reject do |key| old_spec.send(key) == bottle.send(key) end - if old_spec.cellar == :any && bottle.cellar == :any_skip_relocation + if (old_spec.cellar == :any && bottle.cellar == :any_skip_relocation) || + (old_spec.cellar == cellar && + [:any, :any_skip_relocation].include?(bottle.cellar)) mismatches.delete(:cellar) bottle.cellar :any end