2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 18:07:12 +01:00

make sure to remove the waf cache on python 3

This commit is contained in:
Thomas Nagy 2012-01-08 15:49:06 +01:00
parent 3460a01464
commit 33f0b6bdfb

View File

@ -302,7 +302,7 @@ def distclean(ctx):
Logs.warn('file %r cannot be removed' % f)
# remove the local waf cache
if f.startswith('.waf-') and not Options.commands:
if f.startswith('.waf') and not Options.commands:
shutil.rmtree(f, ignore_errors=True)
class Dist(Context.Context):
@ -450,7 +450,7 @@ class Dist(Context.Context):
try:
return self.excl
except:
self.excl = Node.exclude_regs + ' **/waf-1.6.* **/.waf-1.6* **/*~ **/*.rej **/*.orig **/*.pyc **/*.pyo **/*.bak **/*.swp **/.lock-w*'
self.excl = Node.exclude_regs + ' **/waf-1.6.* **/.waf-1.6* **/waf3-1.6.* **/.waf3-1.6* **/*~ **/*.rej **/*.orig **/*.pyc **/*.pyo **/*.bak **/*.swp **/.lock-w*'
nd = self.root.find_node(Context.out_dir)
if nd:
self.excl += ' ' + nd.path_from(self.base_path)