Merge pull request #860 from MikeMcQuaid/bottle-keep-old-merge
bottle: allow --keep-old to ignore same sha256s.
This commit is contained in:
commit
52812006b5
@ -391,13 +391,17 @@ module Homebrew
|
|||||||
|
|
||||||
if !tag.empty?
|
if !tag.empty?
|
||||||
if !bottle_hash["bottle"]["tags"][tag].to_s.empty?
|
if !bottle_hash["bottle"]["tags"][tag].to_s.empty?
|
||||||
|
old_value = bottle_hash["bottle"]["tags"][tag][key].to_s
|
||||||
|
if value != old_value
|
||||||
mismatches << "#{key} => #{tag}"
|
mismatches << "#{key} => #{tag}"
|
||||||
else
|
|
||||||
bottle.send(key, value => tag.to_sym)
|
|
||||||
end
|
end
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
bottle.send(key, value => tag.to_sym)
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
old_value = bottle_hash["bottle"][key].to_s
|
old_value = bottle_hash["bottle"][key].to_s
|
||||||
next if key == "cellar" && old_value == "any" && value == "any_skip_relocation"
|
next if key == "cellar" && old_value == "any" && value == "any_skip_relocation"
|
||||||
mismatches << key if old_value.empty? || value != old_value
|
mismatches << key if old_value.empty? || value != old_value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user