mirror of https://gitlab.com/ita1024/waf.git
Warn of single dots in ant_glob #1853
This commit is contained in:
parent
af66a27da3
commit
4699a7871d
|
@ -126,8 +126,11 @@ def enhance_lib():
|
||||||
if k:
|
if k:
|
||||||
lst = Utils.to_list(k[0])
|
lst = Utils.to_list(k[0])
|
||||||
for pat in lst:
|
for pat in lst:
|
||||||
if '..' in pat.split('/'):
|
sp = pat.split('/')
|
||||||
|
if '..' in sp:
|
||||||
Logs.error("In ant_glob pattern %r: '..' means 'two dots', not 'parent directory'", k[0])
|
Logs.error("In ant_glob pattern %r: '..' means 'two dots', not 'parent directory'", k[0])
|
||||||
|
if '.' in sp:
|
||||||
|
Logs.error("In ant_glob pattern %r: '.' means 'one dot', not 'current directory'", k[0])
|
||||||
if kw.get('remove', True):
|
if kw.get('remove', True):
|
||||||
try:
|
try:
|
||||||
if self.is_child_of(self.ctx.bldnode) and not kw.get('quiet', False):
|
if self.is_child_of(self.ctx.bldnode) and not kw.get('quiet', False):
|
||||||
|
|
Loading…
Reference in New Issue