aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dependency.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/dependency.rb')
-rw-r--r--Library/Homebrew/dependency.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb
index f2da14a06..dd92cc4fc 100644
--- a/Library/Homebrew/dependency.rb
+++ b/Library/Homebrew/dependency.rb
@@ -131,3 +131,15 @@ class Dependency
end
end
end
+
+class TapDependency < Dependency
+ def initialize(name, tags=[], env_proc=DEFAULT_ENV_PROC, option_name=name)
+ super(name, tags, env_proc, name.split("/").last)
+ end
+
+ def installed?
+ super
+ rescue FormulaUnavailableError
+ false
+ end
+end