Allow skip_clean? to skip entire directories

Speeds up Python formula plenty in clean phase
This commit is contained in:
Max Howell 2009-08-10 11:45:25 +01:00
parent bae67c110f
commit 6661f78618

View File

@ -238,7 +238,9 @@ private
def clean_dir d def clean_dir d
d.find do |path| d.find do |path|
if not path.file? if path.directory?
Find.prune if @f.skip_clean? path
elsif not path.file?
next next
elsif path.extname == '.la' and not @f.skip_clean? path elsif path.extname == '.la' and not @f.skip_clean? path
# *.la files are stupid # *.la files are stupid