Merge pull request #20501 from Homebrew/formula-no-tab-fix
Fix formula installs without a tab
This commit is contained in:
commit
a7e338d520
@ -1591,7 +1591,7 @@ on_request: installed_on_request?, options:)
|
||||
|
||||
keg = Keg.new(formula.prefix)
|
||||
skip_linkage = formula.bottle_specification.skip_relocation?
|
||||
keg.replace_placeholders_with_locations(tab.changed_files, skip_linkage:) if tab.changed_files
|
||||
keg.replace_placeholders_with_locations(tab.changed_files, skip_linkage:)
|
||||
|
||||
cellar = formula.bottle_specification.tag_to_cellar(Utils::Bottles.tag)
|
||||
return if [:any, :any_skip_relocation].include?(cellar)
|
||||
|
||||
@ -167,7 +167,7 @@ class Keg
|
||||
relocation
|
||||
end
|
||||
|
||||
sig { params(files: T::Array[Pathname], skip_linkage: T::Boolean).void }
|
||||
sig { params(files: T.nilable(T::Array[Pathname]), skip_linkage: T::Boolean).void }
|
||||
def replace_placeholders_with_locations(files, skip_linkage: false)
|
||||
relocation = prepare_relocation_to_locations.freeze
|
||||
relocate_dynamic_linkage(relocation) unless skip_linkage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user