mirror of https://gitlab.com/ita1024/waf.git
This commit is contained in:
parent
02cb892519
commit
54b89c8804
|
@ -282,6 +282,12 @@ class Node(object):
|
|||
|
||||
ret = cur
|
||||
|
||||
try:
|
||||
os.stat(ret.abspath())
|
||||
except:
|
||||
del ret.parent.children[ret.name]
|
||||
return None
|
||||
|
||||
try:
|
||||
while not getattr(cur.parent, 'cache_isdir', None):
|
||||
cur = cur.parent
|
||||
|
@ -688,9 +694,7 @@ class Node(object):
|
|||
node = self.get_bld().search(lst)
|
||||
if not node:
|
||||
self = self.get_src()
|
||||
node = self.search(lst)
|
||||
if not node:
|
||||
node = self.find_node(lst)
|
||||
node = self.find_node(lst)
|
||||
try:
|
||||
pat = node.abspath()
|
||||
if os.path.isdir(pat):
|
||||
|
|
|
@ -505,10 +505,10 @@ def to_nodes(self, lst, path=None):
|
|||
for x in Utils.to_list(lst):
|
||||
if isinstance(x, str):
|
||||
node = find(x)
|
||||
if not node:
|
||||
raise Errors.WafError("source not found: %r in %r" % (x, self))
|
||||
else:
|
||||
node = x
|
||||
if not node:
|
||||
raise Errors.WafError("source not found: %r in %r" % (x, self))
|
||||
tmp.append(node)
|
||||
return tmp
|
||||
|
||||
|
|
Loading…
Reference in New Issue