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:
parent
c923c31031
commit
bc80ea97ae
@ -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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user