From 48950f2cc07d74a52411cf1fe8674409736291ab Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Wed, 2 Dec 2015 14:35:42 +0800 Subject: centralize the logic of handling `homebrew-` in Tap.fetch Closes Homebrew/homebrew#46537. Signed-off-by: Xu Cheng --- Library/Homebrew/migrator.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library/Homebrew/migrator.rb') diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb index 3418073d0..0492624ef 100644 --- a/Library/Homebrew/migrator.rb +++ b/Library/Homebrew/migrator.rb @@ -31,9 +31,7 @@ class Migrator msg = if tap == "Homebrew/homebrew" "Please try to use #{formula.oldname} to refer the formula.\n" elsif tap - user, repo = tap.split("/") - repo.sub!("homebrew-", "") - "Please try to use fully-qualified #{user}/#{repo}/#{formula.oldname} to refer the formula.\n" + "Please try to use fully-qualified #{Tap.fetch(*tap.split("/"))}/#{formula.oldname} to refer the formula.\n" end super <<-EOS.undent -- cgit v1.2.3