summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2010-04-25 21:09:30 -0700
committerDaniel Burrows <dburrows@debian.org>2010-04-25 21:09:30 -0700
commit27a76628014a4a144e63fa1842434a93ff3f3dd7 (patch)
tree644d11e050d1103e4eb32d577e8b7dcb809b57c9 /site_scons
parent453b406ad16926366cea177af44703126914cfee (diff)
downloadaptitude-27a76628014a4a144e63fa1842434a93ff3f3dd7.tar.gz
Use srcnode() to make the XSL/XML scanners work better with variant builds.
For some reason, scons doesn't copy source files over before asking the scanners to work, so you got this weird behavior where it would find just the first level of dependencies.
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/docbook-xsl-import-scanner.py2
-rw-r--r--site_scons/site_tools/xml-external-entity-scanner.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/site_scons/site_tools/docbook-xsl-import-scanner.py b/site_scons/site_tools/docbook-xsl-import-scanner.py
index 0e2cbe53..ede26bec 100644
--- a/site_scons/site_tools/docbook-xsl-import-scanner.py
+++ b/site_scons/site_tools/docbook-xsl-import-scanner.py
@@ -46,7 +46,7 @@ def DocbookXSLImports(node, env, path):
try:
- infile = file(node.path)
+ infile = file(node.srcnode().path)
except EnvironmentError, e:
if e.errno == errno.ENOENT:
return []
diff --git a/site_scons/site_tools/xml-external-entity-scanner.py b/site_scons/site_tools/xml-external-entity-scanner.py
index 8a44ca15..b12944a4 100644
--- a/site_scons/site_tools/xml-external-entity-scanner.py
+++ b/site_scons/site_tools/xml-external-entity-scanner.py
@@ -46,7 +46,7 @@ def XMLExternalEntities(node, env, path):
raise Finished()
try:
- infile = file(node.path)
+ infile = file(node.srcnode().path)
except EnvironmentError, e:
if e.errno == errno.ENOENT:
return []