formula_installer: fix resource fetching for source builds under API
This commit is contained in:
parent
b55078690c
commit
433631ad60
@ -1181,13 +1181,15 @@ class FormulaInstaller
|
|||||||
|
|
||||||
if pour_bottle?(output_warning: true)
|
if pour_bottle?(output_warning: true)
|
||||||
formula.fetch_bottle_tab
|
formula.fetch_bottle_tab
|
||||||
elsif formula.core_formula? && Homebrew::EnvConfig.install_from_api?
|
|
||||||
url = "https://raw.githubusercontent.com/#{formula.tap.full_name}/#{formula.tap_git_head}/Formula/#{formula.name}.rb"
|
|
||||||
@formula = Formulary.factory(url, formula.active_spec_sym,
|
|
||||||
alias_path: formula.alias_path,
|
|
||||||
flags: formula.class.build_flags,
|
|
||||||
from: :formula_installer)
|
|
||||||
else
|
else
|
||||||
|
if formula.core_formula? && Homebrew::EnvConfig.install_from_api?
|
||||||
|
url = "https://raw.githubusercontent.com/#{formula.tap.full_name}/#{formula.tap_git_head}/Formula/#{formula.name}.rb"
|
||||||
|
@formula = Formulary.factory(url, formula.active_spec_sym,
|
||||||
|
alias_path: formula.alias_path,
|
||||||
|
flags: formula.class.build_flags,
|
||||||
|
from: :formula_installer)
|
||||||
|
end
|
||||||
|
|
||||||
formula.fetch_patches
|
formula.fetch_patches
|
||||||
formula.resources.each(&:fetch)
|
formula.resources.each(&:fetch)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user