formulary: use formula path when installing bottle

This commit is contained in:
Seeker 2020-08-28 20:23:47 -07:00
parent 9bbd866fc6
commit 687c87d74d

View File

@ -175,7 +175,7 @@ module Formulary
def get_formula(spec, force_bottle: false, flags: [], **) def get_formula(spec, force_bottle: false, flags: [], **)
contents = Utils::Bottles.formula_contents @bottle_filename, name: name contents = Utils::Bottles.formula_contents @bottle_filename, name: name
formula = begin formula = begin
Formulary.from_contents(name, @bottle_filename, contents, spec, force_bottle: force_bottle, flags: flags) Formulary.from_contents(name, path, contents, spec, force_bottle: force_bottle, flags: flags)
rescue FormulaUnreadableError => e rescue FormulaUnreadableError => e
opoo <<~EOS opoo <<~EOS
Unreadable formula in #{@bottle_filename}: Unreadable formula in #{@bottle_filename}: