Merge pull request #12327 from Bo98/formulary-force-bottle

formulary: fix keg resolving not setting force_bottle
This commit is contained in:
Bo Anderson 2021-10-26 17:16:51 +01:00 committed by GitHub
commit f24016bccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -450,7 +450,7 @@ module Formulary
keg = kegs.find(&:linked?) || kegs.find(&:optlinked?) || kegs.max_by(&:version)
if keg
from_keg(keg, spec, alias_path: alias_path)
from_keg(keg, spec, alias_path: alias_path, force_bottle: force_bottle, flags: flags)
else
factory(rack.basename.to_s, spec || :stable, alias_path: alias_path, from: :rack,
force_bottle: force_bottle, flags: flags)