diff options
| author | Jack Nagel | 2014-07-06 13:16:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-06 13:16:57 -0500 |
| commit | 6a0720071e32b7e4031db0470bc9fb3056f46a75 (patch) | |
| tree | f09c33aed436bff9c2cbf18b1d30b0f0994539c8 /Library | |
| parent | 2d83c085926a922c847468adf7f66eb442dcd30f (diff) | |
| download | brew-6a0720071e32b7e4031db0470bc9fb3056f46a75.tar.bz2 | |
Use Formula tap methods
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_versions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index 19f9bdb9c..3b96570c8 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 |
