aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formulary.rb
diff options
context:
space:
mode:
authorTsukasa OMOTO2014-04-24 11:26:45 +0900
committerJack Nagel2014-04-24 17:10:41 -0500
commite07584e3fbdc88327bafe23b9c40c904d0fff0a1 (patch)
tree3b58f9aad7bcf43b4bf522f62c8fdca17271d4d3 /Library/Homebrew/formulary.rb
parent1ffa4d9984dd569781c35455327476f7abd2cea3 (diff)
downloadhomebrew-e07584e3fbdc88327bafe23b9c40c904d0fff0a1.tar.bz2
Make the on-disk representation of taps unambiguous
This commit supports "-" and "_" in names of user and repository. Closes #28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/formulary.rb')
-rw-r--r--Library/Homebrew/formulary.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index e8c47c9aa..bde6188d6 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -159,7 +159,7 @@ class Formulary
def initialize tapped_name
@tapped_name = tapped_name
user, repo, name = tapped_name.split("/", 3).map(&:downcase)
- tap = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/#{user}-#{repo}")
+ tap = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/#{user}/homebrew-#{repo}")
path = tap.join("#{name}.rb")
if tap.directory?