diff options
Diffstat (limited to 'manifest_xml.py')
-rw-r--r-- | manifest_xml.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 65b76379..8e9efd13 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -309,12 +309,14 @@ class XmlManifest(object): | |||
309 | if not root or not root.childNodes: | 309 | if not root or not root.childNodes: |
310 | raise ManifestParseError("no root node in %s" % (path,)) | 310 | raise ManifestParseError("no root node in %s" % (path,)) |
311 | 311 | ||
312 | config = root.childNodes[0] | 312 | for manifest in root.childNodes: |
313 | if config.nodeName != 'manifest': | 313 | if manifest.nodeName == 'manifest': |
314 | break | ||
315 | else: | ||
314 | raise ManifestParseError("no <manifest> in %s" % (path,)) | 316 | raise ManifestParseError("no <manifest> in %s" % (path,)) |
315 | 317 | ||
316 | nodes = [] | 318 | nodes = [] |
317 | for node in config.childNodes: | 319 | for node in manifest.childNodes: |
318 | if node.nodeName == 'include': | 320 | if node.nodeName == 'include': |
319 | name = self._reqatt(node, 'name') | 321 | name = self._reqatt(node, 'name') |
320 | fp = os.path.join(include_root, name) | 322 | fp = os.path.join(include_root, name) |