Merge pull request #8531 from SeekingMeaning/formulary/bottle-formula-path
formulary: use formula path when loading from bottle
This commit is contained in:
commit
d6d0e3208c
@ -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}:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user