From c9563cce957c69ae3bfc150ff0ca83bc60fc3e03 Mon Sep 17 00:00:00 2001 From: Peter Aronoff Date: Fri, 15 Mar 2013 09:50:38 -0400 Subject: [PATCH] Fix `brew update` so that it doesn't show doubles Under certain conditions, `brew update` will show doubles. It's a rare edge-case, but if you have a tap where the name of the formula is identical with the name of the insalled file, then you see output like this: ==> Updated Formulae aalib ssh-copy-id casperjs sshuttle jack telemachus/anytap/brew-any-tap mogenerator telemachus/anytap/brew-any-tap I believe this should fix that. Closes Homebrew/homebrew#18495. Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index 838351e684..95125d33ce 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -182,7 +182,7 @@ class Report < Hash formula = select_formula(key) unless formula.empty? ohai title - puts_columns formula + puts_columns formula.uniq end end