This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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 <max@methylblue.com>

Closes #743
  • Loading branch information...
1 parent 2a98f7c commit 73264f4396c7c4675fec6226531bd5c9ac606f8f @mkhl mkhl committed with mxcl Feb 16, 2010
Showing with 1 addition and 2 deletions.
  1. +0 −2 Library/Homebrew/brew.h.rb
  2. +1 −0 bin/brew
@@ -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
View
@@ -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

0 comments on commit 73264f4

Please sign in to comment.