Skip to content
Snippets Groups Projects
Commit 17bad9ac authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1374 from sjackman/bottle-checksums

Do not remove unknown bottle tags
parents 3bcf80f6 8a3481ee
No related branches found
No related tags found
No related merge requests found
...@@ -336,20 +336,19 @@ class BottleSpecification ...@@ -336,20 +336,19 @@ class BottleSpecification
end end
def checksums def checksums
checksums = {} tags = collector.keys.sort_by do |tag|
os_versions = collector.keys # Sort non-MacOS tags below MacOS tags.
os_versions.map! do |macos|
begin begin
MacOS::Version.from_symbol macos MacOS::Version.from_symbol tag
rescue rescue
nil "0.#{tag}"
end end
end.compact! end
os_versions.sort.reverse_each do |os_version| checksums = {}
macos = os_version.to_sym tags.reverse_each do |tag|
checksum = collector[macos] checksum = collector[tag]
checksums[checksum.hash_type] ||= [] checksums[checksum.hash_type] ||= []
checksums[checksum.hash_type] << { checksum => macos } checksums[checksum.hash_type] << { checksum => tag }
end end
checksums checksums
end 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