aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlex Dunn2015-11-09 07:30:02 -0800
committerAlex Dunn2015-11-09 07:30:02 -0800
commit745ec8f7c942ea5e2a6cb3eaaa0c5f8d5cf98f1f (patch)
tree78c148bbd275db6b974b7d4c59646940127a8cad /Library
parent95bbd8ef0274285d7d778ec059cbccdd7e402cb5 (diff)
downloadbrew-745ec8f7c942ea5e2a6cb3eaaa0c5f8d5cf98f1f.tar.bz2
cmd/update: check before tapping
Follow-up to ea6c8f7e2dc8f1adf8df9065468d0b37047d4a46
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 70d381250..504d4115b 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -83,7 +83,8 @@ module Homebrew
migration = TAP_MIGRATIONS[f]
next unless migration
tap = Tap.fetch(*migration.split("/"))
- tap.install
+ tap.install unless tap.installed?
+
# update tap for each Tab
tabs = dir.subdirs.map { |d| Tab.for_keg(Keg.new(d)) }
next if tabs.first.source["tap"] != "Homebrew/homebrew"