aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2014-08-11 20:15:25 +0100
committerMike McQuaid2014-08-11 20:18:15 +0100
commite46461927dbb906b202f6915528e3c4d5ce14a2f (patch)
treede77c93bdd838f566cc6498ddb701300ed861d47 /Library/Homebrew
parent13424d1a71a8dc46989693cf6279ca3bd523df75 (diff)
downloadhomebrew-e46461927dbb906b202f6915528e3c4d5ce14a2f.tar.bz2
formula_installer: check for recommended/optional.
build.without? seemingly always returns true for requirements that are neither recommended nor optional so check these before deciding not to install a default formula. Closes #31511.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 2b064107b..63b7fa0df 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -241,7 +241,7 @@ class FormulaInstaller
def install_requirement_default_formula?(req, build)
return false unless req.default_formula?
- return false if build.without?(req)
+ return false if build.without?(req) && (req.recommended? || req.optional?)
return true unless req.satisfied?
pour_bottle? || build_bottle?
end