diff options
| author | Adam Vandenberg | 2011-03-11 13:36:37 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:11 -0800 |
| commit | 0e0d72e49fc492256c6030827c9512d45ba2f406 (patch) | |
| tree | 7a3fcf4c58d36d905b2c0f6154471aa4fb0b89f2 /Library | |
| parent | bcf8bb5a7ff3a8367cf2a47d51456db45a2627d3 (diff) | |
| download | brew-0e0d72e49fc492256c6030827c9512d45ba2f406.tar.bz2 | |
brew cleanup - do not clean up keg-only brews for now
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/cleanup.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index f1d4ba68b..c01f4b18f 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -25,6 +25,14 @@ module Homebrew extend self f = Formula.factory f rack = f.prefix.parent + # Don't clean up keg-only brews for now. + # Formulae link directly to them, so cleaning up old + # ones will break already compiled software. + if f.keg_only? + opoo "Skipping keg-only #{f.name}" if rack.children.length > 1 + return + end + if f.installed? and rack.directory? rack.children.each do |keg| if f.installed_prefix != keg |
