formulary: fix keg resolving not setting force_bottle

This commit is contained in:
Bo Anderson 2021-10-26 15:02:29 +01:00
parent 47ef066344
commit 267dd32a34
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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)