Use Formula tap methods
This commit is contained in:
parent
2d83c08592
commit
6a0720071e
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user