2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 11:51:20 +01:00

waflib: extras: rst: update scan to provide dependent directive type

This commit is contained in:
Jérôme Carretero 2016-02-01 21:59:59 -05:00
parent c923c31031
commit bc80ea97ae

View File

@ -56,12 +56,12 @@ def parse_rst_node(task, node, nodes, names, seen, dirs=None):
found = d.find_node(ipath) found = d.find_node(ipath)
if found: if found:
Logs.debug("rst: found %s as %s" % (ipath, found.abspath())) Logs.debug("rst: found %s as %s" % (ipath, found.abspath()))
nodes.append(found) nodes.append((itype, found))
if itype == 'include': if itype == 'include':
parse_rst_node(task, found, nodes, names, seen) parse_rst_node(task, found, nodes, names, seen)
break break
if not found: if not found:
names.append(ipath) names.append((itype, ipath))
class docutils(Task.Task): class docutils(Task.Task):
""" """
@ -88,7 +88,7 @@ class docutils(Task.Task):
if names: if names:
Logs.warn("rst: %s: could not find the following file deps: %s" % (repr(self), names)) Logs.warn("rst: %s: could not find the following file deps: %s" % (repr(self), names))
return (nodes, names) return ([v for (t,v) in nodes], [v for (t,v) in names])
def check_status(self, msg, retcode): def check_status(self, msg, retcode):
""" """