Use Formula tap methods

This commit is contained in:
Jack Nagel 2014-07-06 13:16:57 -05:00
parent 2d83c08592
commit 6a0720071e

View File

@ -13,8 +13,8 @@ class FormulaVersions
end end
def repository def repository
@repository ||= if f.path.to_s =~ HOMEBREW_TAP_DIR_REGEX @repository ||= if f.tap?
HOMEBREW_REPOSITORY/"Library/Taps/#$1/#$2" HOMEBREW_LIBRARY.join("Taps", f.tap)
else else
HOMEBREW_REPOSITORY HOMEBREW_REPOSITORY
end end