aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-11-04 12:00:06 -0600
committerJack Nagel2013-11-04 12:00:06 -0600
commitc556b3dc09b130ab431e55e2752a8a3a479040d7 (patch)
treef62271145f331c74e2e9ad518b0bfc8166da8b57
parent06dbec5aaf810e89596d8ad7582f1d8cf1b6d568 (diff)
downloadbrew-c556b3dc09b130ab431e55e2752a8a3a479040d7.tar.bz2
Add explicit "run" dependency tag
-rw-r--r--Library/Homebrew/dependable.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/dependable.rb b/Library/Homebrew/dependable.rb
index 50ff5c90f..d500cd033 100644
--- a/Library/Homebrew/dependable.rb
+++ b/Library/Homebrew/dependable.rb
@@ -1,7 +1,7 @@
require 'options'
module Dependable
- RESERVED_TAGS = [:build, :optional, :recommended]
+ RESERVED_TAGS = [:build, :optional, :recommended, :run]
def build?
tags.include? :build
@@ -15,6 +15,10 @@ module Dependable
tags.include? :recommended
end
+ def run?
+ tags.include? :run
+ end
+
def required?
!build? && !optional? && !recommended?
end