From 6a0720071e32b7e4031db0470bc9fb3056f46a75 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 6 Jul 2014 13:16:57 -0500 Subject: [PATCH] Use Formula tap methods --- Library/Homebrew/formula_versions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index 19f9bdb9c1..3b96570c88 100644 --- a/Library/Homebrew/formula_versions.rb +++ b/Library/Homebrew/formula_versions.rb @@ -13,8 +13,8 @@ class FormulaVersions end def repository - @repository ||= if f.path.to_s =~ HOMEBREW_TAP_DIR_REGEX - HOMEBREW_REPOSITORY/"Library/Taps/#$1/#$2" + @repository ||= if f.tap? + HOMEBREW_LIBRARY.join("Taps", f.tap) else HOMEBREW_REPOSITORY end