bottle: properly set rebuild for new formulae

This commit is contained in:
Rylan Polster 2021-05-04 23:10:40 -04:00
parent 684505b55b
commit da27c70323
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -341,6 +341,8 @@ module Homebrew
end end
end end
end end
# FormulaVersions#formula_at_revision returns nil for new formulae
rebuild ||= 0
filename = Bottle::Filename.create(f, bottle_tag.to_sym, rebuild) filename = Bottle::Filename.create(f, bottle_tag.to_sym, rebuild)
local_filename = filename.to_s local_filename = filename.to_s