mirror of https://gitlab.com/ita1024/waf.git
Smarter way of reinjecting files by extension
Use the file name to match against the list of extensions, and not just the last extension used.
This commit is contained in:
parent
476f89681a
commit
02cb892519
|
@ -346,7 +346,7 @@ def declare_chain(name='', rule=None, reentrant=None, color='BLUE',
|
|||
self.source.append(k)
|
||||
else:
|
||||
for y in keys: # ~ nfile * nextensions :-/
|
||||
if x.endswith(y):
|
||||
if k.name.endswith(y):
|
||||
self.source.append(k)
|
||||
break
|
||||
cnt += 1
|
||||
|
|
Loading…
Reference in New Issue