From 8b6e1f33dae076864c304d725be67e5f8c59ab31 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 5 Sep 2023 08:22:55 -0400 Subject: [PATCH] formula_installer: don't ignore deps when fetching and pouring bottles. Otherwise, we can try to pour bottles that haven't been downloaded yet. Possible fix for #15957. --- Library/Homebrew/formula_installer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index ff4eb700c9..fac5029097 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -685,7 +685,8 @@ on_request: installed_on_request?, options: options) # When fetching we don't need to recurse the dependency tree as it's already # been done for us in `compute_dependencies` and there's no requirement to # fetch in a particular order. - ignore_deps: true, + # Note, this tree can vary when pouring bottles so we need ot check it then. + ignore_deps: !pour_bottle?, installed_as_dependency: true, include_test_formulae: @include_test_formulae, build_from_source_formulae: @build_from_source_formulae,