From bfb44d9e6723f97ceddcac2774bd89146cad0330 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 8 Mar 2016 21:53:29 +0800 Subject: [PATCH] migrator: use Tap#core_tap? --- Library/Homebrew/migrator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb index 3389d57d76..5d6f5d4e6d 100644 --- a/Library/Homebrew/migrator.rb +++ b/Library/Homebrew/migrator.rb @@ -27,7 +27,7 @@ class Migrator class MigratorDifferentTapsError < RuntimeError def initialize(formula, tap) - msg = if tap == "Homebrew/homebrew" + msg = if tap.core_tap? "Please try to use #{formula.oldname} to refer the formula.\n" elsif tap "Please try to use fully-qualified #{tap}/#{formula.oldname} to refer the formula.\n"