migrator: use Tap#core_tap?

This commit is contained in:
Xu Cheng 2016-03-08 21:53:29 +08:00
parent 041c8502c5
commit bfb44d9e67

View File

@ -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"