diff options
| author | Jack Nagel | 2013-11-14 09:25:27 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-14 09:25:27 -0600 |
| commit | 47092b4bd01abc619114db01aa7b67b6c9c07f2f (patch) | |
| tree | f2e89fc63f62323694441a76bc3ca1c27ad2af3c /Library | |
| parent | 1153d0f9e20d0b6a19203707b609634f8fea1ad5 (diff) | |
| download | homebrew-47092b4bd01abc619114db01aa7b67b6c9c07f2f.tar.bz2 | |
update: guard against nil in tap migrations
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/update.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index 709e138ba..6e340e3c4 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -59,7 +59,9 @@ module Homebrew extend self # automatically tap any migrated formulae's new tap report.select_formula(:D).each do |f| next unless (HOMEBREW_CELLAR/f).exist? - tap_user, tap_repo = TAP_MIGRATIONS[f].split '/' + migration = TAP_MIGRATIONS[f] + next unless migration + tap_user, tap_repo = migration.split '/' begin install_tap tap_user, tap_repo rescue AlreadyTappedError => e |
