aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-10 11:45:25 +0100
committerMax Howell2009-08-10 18:12:16 +0100
commit6661f78618a640ac9570f2003df5c359d1027579 (patch)
tree9e912541d19860af321c3d69280ae132867c1dc8 /Library
parentbae67c110fd3a8ca23f17def7cc9dd2dadd5fbb8 (diff)
downloadbrew-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.rb4
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