diff options
| author | Mike McQuaid | 2017-03-30 19:18:40 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2017-03-30 19:18:40 +0100 | 
| commit | 45357ef0dd2bfc0bf8d957fd890e030fd9f7cf6a (patch) | |
| tree | 216e4970c704d78120c519a524d4f644f6268c24 /Library/Homebrew/missing_formula.rb | |
| parent | 7d66e299278b687c67c165960d99921d92ff1753 (diff) | |
| download | brew-45357ef0dd2bfc0bf8d957fd890e030fd9f7cf6a.tar.bz2 | |
Fix handling of tap migrations to new cask names.
Need to check for two `/`s rather than one.
Diffstat (limited to 'Library/Homebrew/missing_formula.rb')
| -rw-r--r-- | Library/Homebrew/missing_formula.rb | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index 9c1656aa2..1b584af8a 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -105,10 +105,14 @@ module Homebrew          message = nil          Tap.each do |old_tap| -          new_tap_name = old_tap.tap_migrations[name] -          next unless new_tap_name +          new_tap = old_tap.tap_migrations[name] +          next unless new_tap + +          new_tap_user, new_tap_repo, = new_tap.split("/") +          new_tap_name = "#{new_tap_user}/#{new_tap_repo}" +            message = <<-EOS.undent -            It was migrated from #{old_tap} to #{new_tap_name}. +            It was migrated from #{old_tap} to #{new_tap}.              You can access it again by running:                brew tap #{new_tap_name}            EOS | 
