Merge pull request #11476 from Rylan12/fix-bottle-rebuild
bottle: calculate rebuild correctly when removing `bottle :unneeded`
This commit is contained in:
commit
27e27fa603
@ -312,7 +312,7 @@ module Homebrew
|
||||
else
|
||||
ohai "Determining #{f.full_name} bottle rebuild..."
|
||||
FormulaVersions.new(f).formula_at_revision("origin/HEAD") do |upstream_f|
|
||||
if f.pkg_version == upstream_f.pkg_version
|
||||
if f.pkg_version == upstream_f.pkg_version && !upstream_f.bottle_unneeded?
|
||||
upstream_f.bottle_specification.rebuild + 1
|
||||
else
|
||||
0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user