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

software_spec: make bottle sorting stable.

As `:arm64_big_sur` and `:big_sur` equated to the same version: their
sorting was not consistent. Instead, suffix the tag and use that for
sorting so `:big_sur` is always before `:arm64_big_sur`.
parent 3aeaf515
No related branches found
No related tags found
No related merge requests found
......@@ -392,10 +392,9 @@ class BottleSpecification
def checksums
tags = collector.keys.sort_by do |tag|
# Sort non-MacOS tags below MacOS tags.
OS::Mac::Version.from_symbol tag
"#{OS::Mac::Version.from_symbol(tag)}_#{tag}"
rescue MacOSVersionError
# Sort non-MacOS tags below MacOS tags.
"0.#{tag}"
end
checksums = {}
......
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