aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-03-28 14:58:33 +0000
committerMike McQuaid2014-04-03 19:47:15 +0100
commit4740c7389fae20501790337e01fbca5b7dc81180 (patch)
tree41d580018c36da89ec4805d9a5cdcab9369df4be /Library
parentae43a2843da69058e1abcc4d598bc3058d160b5d (diff)
downloadhomebrew-4740c7389fae20501790337e01fbca5b7dc81180.tar.bz2
formula_installer: check pour from requirements.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index cf6e28903..a84827a55 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -55,6 +55,14 @@ class FormulaInstaller
return true if f.local_bottle_path
return false unless f.bottle && f.pour_bottle?
+ f.requirements.each do |req|
+ next if req.optional? || req.pour_bottle?
+ if install_bottle_options[:warn]
+ ohai "Building source; bottle blocked by #{req} requirement"
+ end
+ return false
+ end
+
unless f.bottle.compatible_cellar?
if install_bottle_options[:warn]
opoo "Building source; cellar of #{f}'s bottle is #{f.bottle.cellar}"