Navigation Menu

Skip to content

Commit

Permalink
Fix brew cleanup: less pruning
Browse files Browse the repository at this point in the history
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 Homebrew#743
  • Loading branch information
mkhl authored and mxcl committed Feb 16, 2010
1 parent 6647a84 commit ee3c7b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions Library/Homebrew/brew.h.rb
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions bin/brew
Expand Up @@ -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
Expand Down

0 comments on commit ee3c7b5

Please sign in to comment.