Merge pull request #6505 from sjackman/bottle-deps

Install bottle deps only when a bottle was poured
This commit is contained in:
Mike McQuaid 2019-09-30 08:31:36 +01:00 committed by GitHub
commit e37d1d4622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -479,7 +479,6 @@ class FormulaInstaller
dependent, dependent,
inherited_options.fetch(dependent.name, []), inherited_options.fetch(dependent.name, []),
) )
pour_bottle = true if install_bottle_for?(dep.to_formula, build)
if dep.prune_from_option?(build) if dep.prune_from_option?(build)
Dependency.prune Dependency.prune
@ -491,6 +490,8 @@ class FormulaInstaller
Dependency.prune Dependency.prune
elsif dep.satisfied?(inherited_options[dep.name]) elsif dep.satisfied?(inherited_options[dep.name])
Dependency.skip Dependency.skip
else
pour_bottle ||= install_bottle_for?(dep.to_formula, build)
end end
end end