diff options
| author | Xu Cheng | 2015-12-02 14:35:42 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-12-03 13:46:59 +0800 |
| commit | 48950f2cc07d74a52411cf1fe8674409736291ab (patch) | |
| tree | 0da3b69048aea7198636e5f1bd2df3902fc9258b /Library/Homebrew/migrator.rb | |
| parent | 9755662e49439c29d5724f5d71f3ba1f03cd9d6d (diff) | |
| download | brew-48950f2cc07d74a52411cf1fe8674409736291ab.tar.bz2 | |
centralize the logic of handling `homebrew-` in Tap.fetch
Closes Homebrew/homebrew#46537.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/migrator.rb')
| -rw-r--r-- | Library/Homebrew/migrator.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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 |
