Add bottle rebuild when loading from API

This commit is contained in:
Rylan Polster 2022-06-14 14:09:56 -04:00
parent 1d36c42fb7
commit 944d7eebf0
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -435,6 +435,7 @@ module Formulary
if (bottles_stable = json_formula["bottle"]["stable"]).present?
bottle do
root_url bottles_stable["root_url"]
rebuild bottles_stable["rebuild"]
bottles_stable["files"].each do |tag, bottle_spec|
cellar = bottle_spec["cellar"]
cellar = cellar[1..].to_sym if cellar.start_with?(":")