summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2010-04-25 20:53:19 -0700
committerDaniel Burrows <dburrows@debian.org>2010-04-25 20:53:19 -0700
commit4467cd5bb56d12d904ff0f2520022e529c25785b (patch)
treee1d6a446b1a24550ee43ec67a393aff41be77006 /site_scons
parent15b89c175064e1a2898c6d523f612f66e92161bf (diff)
downloadaptitude-4467cd5bb56d12d904ff0f2520022e529c25785b.tar.gz
Allow the XML and XSL scanners to be invoked recursively.
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/docbook-xsl-import-scanner.py7
-rw-r--r--site_scons/site_tools/xml-external-entity-scanner.py7
2 files changed, 10 insertions, 4 deletions
diff --git a/site_scons/site_tools/docbook-xsl-import-scanner.py b/site_scons/site_tools/docbook-xsl-import-scanner.py
index 9497907b..c9df5ddd 100644
--- a/site_scons/site_tools/docbook-xsl-import-scanner.py
+++ b/site_scons/site_tools/docbook-xsl-import-scanner.py
@@ -17,7 +17,7 @@
import errno
import xml.parsers.expat
-from SCons.Script import Scanner
+from SCons.Script import File, Scanner
def exists():
return True
@@ -69,4 +69,7 @@ def DocbookXSLImports(node, env, path):
return result
DocbookXSLImportScanner = Scanner(function = DocbookXSLImports,
- skeys = [ '.xsl' ])
+ skeys = [ '.xsl' ],
+ node_class = File,
+ recursive = True,
+ )
diff --git a/site_scons/site_tools/xml-external-entity-scanner.py b/site_scons/site_tools/xml-external-entity-scanner.py
index ca76d298..e47acf80 100644
--- a/site_scons/site_tools/xml-external-entity-scanner.py
+++ b/site_scons/site_tools/xml-external-entity-scanner.py
@@ -17,7 +17,7 @@
import errno
import xml.parsers.expat
-from SCons.Script import Scanner
+from SCons.Script import File, Scanner
def exists():
return True
@@ -72,4 +72,7 @@ def XMLExternalEntities(node, env, path):
return result
XMLExternalEntitiesScanner = Scanner(function = XMLExternalEntities,
- skeys = [ '.xml' ])
+ skeys = [ '.xml' ],
+ node_class = File,
+ recursive = True,
+ )