formula_installer: avoid cyclic dependency

Fixes:
==> Installing patchelf dependency: patchelf
==> Installing dependencies for patchelf: patchelf
==> Installing patchelf dependency: patchelf
==> Installing dependencies for patchelf: patchelf
==> Installing patchelf dependency: patchelf
==> Installing dependencies for patchelf: patchelf
...
This commit is contained in:
Michka Popoff 2018-08-06 23:09:04 +02:00
parent 15c62dfd01
commit dc527fccdc

View File

@ -502,7 +502,7 @@ class FormulaInstaller
end
end
if pour_bottle
if pour_bottle && !Keg.relocation_formulae.include?(formula.name)
bottle_deps = Keg.relocation_formulae
.map { |formula| Dependency.new(formula) }
.reject do |dep|