Missing folders for Issue 1325

This commit is contained in:
Thomas Nagy 2013-10-28 21:25:58 +01:00
parent 96ccc17eeb
commit ca4c933a28
1 changed files with 5 additions and 3 deletions

View File

@ -300,9 +300,11 @@ def distclean(ctx):
if e.errno != errno.ENOENT:
Logs.warn('file %r cannot be removed' % f)
# remove the local waf cache
if (f.startswith('.waf-1.') or f.startswith('waf-1.')) and not Options.commands:
shutil.rmtree(f, ignore_errors=True)
# remove local waf cache folders
if not Options.commands:
for x in '.waf-1. waf-1. .waf3-1. waf3-1.'.split():
if f.startswith(x):
shutil.rmtree(f, ignore_errors=True)
class Dist(Context.Context):
'''creates an archive containing the project source code'''