From 767da444f9d0112607370177d00c0d73042f2959 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 28 Mar 2014 14:52:23 +0000 Subject: [PATCH] requirement: add pour_bottle? method. Allows disabling bottles from requirements. --- Library/Homebrew/requirement.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb index cb957af32c..b3acbe665c 100644 --- a/Library/Homebrew/requirement.rb +++ b/Library/Homebrew/requirement.rb @@ -33,6 +33,10 @@ class Requirement !!result end + # Can overridden to optionally prevent a formula with this requirement from + # pouring a bottle. + def pour_bottle?; true end + # Overriding #fatal? is deprecated. # Pass a boolean to the fatal DSL method instead. def fatal?