diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-04-25 21:09:30 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-04-25 21:09:30 -0700 |
commit | 27a76628014a4a144e63fa1842434a93ff3f3dd7 (patch) | |
tree | 644d11e050d1103e4eb32d577e8b7dcb809b57c9 /site_scons | |
parent | 453b406ad16926366cea177af44703126914cfee (diff) | |
download | aptitude-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.py | 2 | ||||
-rw-r--r-- | site_scons/site_tools/xml-external-entity-scanner.py | 2 |
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 [] |