mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-09 09:55:41 +01:00
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:
|
||||
lst = Utils.to_list(k[0])
|
||||
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])
|
||||
if '.' in sp:
|
||||
Logs.error("In ant_glob pattern %r: '.' means 'one dot', not 'current directory'", k[0])
|
||||
if kw.get('remove', True):
|
||||
try:
|
||||
if self.is_child_of(self.ctx.bldnode) and not kw.get('quiet', False):
|
||||
|
Loading…
Reference in New Issue
Block a user