From e3a9e961bf3a31afdee71c1276a077396f0dfe6c Mon Sep 17 00:00:00 2001 From: Martin Kuehl Date: Tue, 16 Feb 2010 15:41:26 +0100 Subject: [PATCH] Fix `brew cleanup`: less pruning Running `brew cleanup` (with no arguments or multiple arguments) will run `brew prune` after _every_ cleaned formula, i.e. possibly after every installed formula. With this change it will instead only run `prune` after all formulae are cleaned, and only when no arguments were given to `cleanup`. Signed-off-by: Max Howell Closes Homebrew/homebrew#743 --- Library/Homebrew/brew.h.rb | 2 -- bin/brew | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 3599090956..6a284b2921 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -262,8 +262,6 @@ def cleanup name puts end end - - prune # seems like a good time to do some additional cleanup end def clean f diff --git a/bin/brew b/bin/brew index ef152fd836..8dc7c0ae40 100755 --- a/bin/brew +++ b/bin/brew @@ -217,6 +217,7 @@ begin opoo "Formula not found for #{e.name}" end end + prune # seems like a good time to do some additional cleanup else ARGV.named.each { |name| cleanup name} end