diff options
| author | Mike McQuaid | 2017-03-21 17:31:31 +0000 |
|---|---|---|
| committer | GitHub | 2017-03-21 17:31:31 +0000 |
| commit | 4117d198ccff6b220ca3e26882f1f3904130b984 (patch) | |
| tree | 86a9e08a44b57912588b939fc2388bb9a16b4da2 /Library/Homebrew/dev-cmd/create.rb | |
| parent | 7095b9b3c7ca8584a4e7528aa62f0ae87e3afdc0 (diff) | |
| parent | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba (diff) | |
| download | brew-4117d198ccff6b220ca3e26882f1f3904130b984.tar.bz2 | |
Merge pull request #1732 from zmwangx/hint-migrations
Hint at new location of migrated formulae
Diffstat (limited to 'Library/Homebrew/dev-cmd/create.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/create.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/dev-cmd/create.rb b/Library/Homebrew/dev-cmd/create.rb index 9c58dc71a..6855d6f37 100644 --- a/Library/Homebrew/dev-cmd/create.rb +++ b/Library/Homebrew/dev-cmd/create.rb @@ -19,7 +19,7 @@ #: the specified tap. require "formula" -require "blacklist" +require "missing_formula" require "digest" require "erb" @@ -73,8 +73,8 @@ module Homebrew # Don't allow blacklisted formula, or names that shadow aliases, # unless --force is specified. unless ARGV.force? - if msg = blacklisted?(fc.name) - raise "#{fc.name} is blacklisted for creation.\n#{msg}\nIf you really want to create this formula use --force." + if reason = Homebrew::MissingFormula.blacklisted_reason(fc.name) + raise "#{fc.name} is blacklisted for creation.\n#{reason}\nIf you really want to create this formula use --force." end if Formula.aliases.include? fc.name |
