bottle: allow --keep-old to ignore same sha256s.
It should refuse to change existing ones but it should allow them to be the same and silently ignore.
This commit is contained in:
parent
9fd97dd3cf
commit
ec1437499a
@ -391,10 +391,14 @@ 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?
|
||||||
mismatches << "#{key} => #{tag}"
|
old_value = bottle_hash["bottle"]["tags"][tag][key].to_s
|
||||||
else
|
if value != old_value
|
||||||
bottle.send(key, value => tag.to_sym)
|
mismatches << "#{key} => #{tag}"
|
||||||
|
end
|
||||||
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
bottle.send(key, value => tag.to_sym)
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user