aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependency.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb
index c8b26738b..fbe0fa903 100644
--- a/Library/Homebrew/dependency.rb
+++ b/Library/Homebrew/dependency.rb
@@ -134,8 +134,8 @@ end
class TapDependency < Dependency
attr_reader :tap
- def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_name = name)
- @tap, _, option_name = option_name.rpartition "/"
+ def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_name = name.split("/").last)
+ @tap = name.rpartition("/").first
super(name, tags, env_proc, option_name)
end