Allow skip_clean? to skip entire directories
Speeds up Python formula plenty in clean phase
This commit is contained in:
parent
bae67c110f
commit
6661f78618
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user