aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-03-08 21:53:29 +0800
committerXu Cheng2016-03-08 21:55:09 +0800
commitbfb44d9e6723f97ceddcac2774bd89146cad0330 (patch)
tree924be8ef48afcb3ad52496942e3abca1654769f2
parent041c8502c5ec6f877211202313a5233132834d0b (diff)
downloadbrew-bfb44d9e6723f97ceddcac2774bd89146cad0330.tar.bz2
migrator: use Tap#core_tap?
-rw-r--r--Library/Homebrew/migrator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb
index 3389d57d7..5d6f5d4e6 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"