bottle: allow prefix cellar to be any*

This commit is contained in:
Dawid Dziurla 2019-10-15 20:13:04 +02:00
parent 9e337978d9
commit e19fab86c0
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -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