formula_installer.rb: call relocate_build_prefix
This commit is contained in:
parent
c4032ac9c9
commit
4de01663bc
@ -1228,6 +1228,14 @@ class FormulaInstaller
|
|||||||
keg = Keg.new(formula.prefix)
|
keg = Keg.new(formula.prefix)
|
||||||
skip_linkage = formula.bottle_specification.skip_relocation?
|
skip_linkage = formula.bottle_specification.skip_relocation?
|
||||||
keg.replace_placeholders_with_locations tab.changed_files, skip_linkage: skip_linkage
|
keg.replace_placeholders_with_locations tab.changed_files, skip_linkage: skip_linkage
|
||||||
|
|
||||||
|
cellar = formula.bottle_specification.tag_to_cellar(Utils::Bottles.tag)
|
||||||
|
return if [:any, :any_skip_relocation].include?(cellar)
|
||||||
|
|
||||||
|
prefix = Pathname(cellar).parent.to_s
|
||||||
|
return if cellar == HOMEBREW_CELLAR.to_s && prefix == HOMEBREW_PREFIX.to_s
|
||||||
|
|
||||||
|
keg.relocate_build_prefix(keg, prefix, HOMEBREW_PREFIX)
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { params(output: T.nilable(String)).void }
|
sig { params(output: T.nilable(String)).void }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user