aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-11-14 09:25:27 -0600
committerJack Nagel2013-11-14 09:25:27 -0600
commit8335401bc35eace8a47a892d1cc60a5fe8f37abd (patch)
tree330e250f2f74a8e0dff2a1513745ec6c07ee3235 /Library/Homebrew
parentf41e1a3b835cc1c6339128d116d1c58d2da6d323 (diff)
downloadbrew-8335401bc35eace8a47a892d1cc60a5fe8f37abd.tar.bz2
update: guard against nil in tap migrations
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/update.rb4
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