software_spec: change BottleSpecification#checksums to return array
This commit is contained in:
parent
3c84e1fef3
commit
8693ca4e4d
@ -30,11 +30,9 @@ BOTTLE_ERB = <<-EOS
|
|||||||
<% if rebuild.positive? %>
|
<% if rebuild.positive? %>
|
||||||
rebuild <%= rebuild %>
|
rebuild <%= rebuild %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% checksums.each do |checksum_type, checksum_values| %>
|
<% checksums.each do |checksum_value| %>
|
||||||
<% checksum_values.each do |checksum_value| %>
|
|
||||||
<% checksum, macos = checksum_value.shift %>
|
<% checksum, macos = checksum_value.shift %>
|
||||||
<%= checksum_type %> "<%= checksum %>" => :<%= macos %>
|
sha256 "<%= checksum %>" => :<%= macos %>
|
||||||
<% end %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
end
|
end
|
||||||
EOS
|
EOS
|
||||||
|
|||||||
@ -439,13 +439,12 @@ class BottleSpecification
|
|||||||
# Sort non-MacOS tags below MacOS tags.
|
# Sort non-MacOS tags below MacOS tags.
|
||||||
"0.#{tag}"
|
"0.#{tag}"
|
||||||
end
|
end
|
||||||
sha256s = tags.reverse.map do |tag|
|
tags.reverse.map do |tag|
|
||||||
{
|
{
|
||||||
collector[tag][:checksum] => tag,
|
collector[tag][:checksum] => tag,
|
||||||
cellar: collector[tag][:cellar],
|
cellar: collector[tag][:cellar],
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{ sha256: sha256s }
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user