Skip to content
Snippets Groups Projects
Commit ec143749 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

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.
parent 9fd97dd3
No related branches found
No related tags found
No related merge requests found
......@@ -391,10 +391,14 @@ module Homebrew
if !tag.empty?
if !bottle_hash["bottle"]["tags"][tag].to_s.empty?
mismatches << "#{key} => #{tag}"
else
bottle.send(key, value => tag.to_sym)
old_value = bottle_hash["bottle"]["tags"][tag][key].to_s
if value != old_value
mismatches << "#{key} => #{tag}"
end
next
end
bottle.send(key, value => tag.to_sym)
next
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment