diff options
| author | Max Howell | 2009-08-10 11:45:25 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-10 18:12:16 +0100 |
| commit | 6661f78618a640ac9570f2003df5c359d1027579 (patch) | |
| tree | 9e912541d19860af321c3d69280ae132867c1dc8 /Library | |
| parent | bae67c110fd3a8ca23f17def7cc9dd2dadd5fbb8 (diff) | |
| download | brew-6661f78618a640ac9570f2003df5c359d1027579.tar.bz2 | |
Allow skip_clean? to skip entire directories
Speeds up Python formula plenty in clean phase
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 842439a8c..f3dee102a 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -238,7 +238,9 @@ private def clean_dir d d.find do |path| - if not path.file? + if path.directory? + Find.prune if @f.skip_clean? path + elsif not path.file? next elsif path.extname == '.la' and not @f.skip_clean? path # *.la files are stupid |
