diff options
Diffstat (limited to 'manifest_xml.py')
| -rw-r--r-- | manifest_xml.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 03925176..0068ac6a 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
| @@ -1266,7 +1266,10 @@ https://gerrit.googlesource.com/git-repo/+/HEAD/docs/manifest-format.md | |||
| 1266 | raise ManifestParseError("no root node in %s" % (path,)) | 1266 | raise ManifestParseError("no root node in %s" % (path,)) |
| 1267 | 1267 | ||
| 1268 | for manifest in root.childNodes: | 1268 | for manifest in root.childNodes: |
| 1269 | if manifest.nodeName == "manifest": | 1269 | if ( |
| 1270 | manifest.nodeType == manifest.ELEMENT_NODE | ||
| 1271 | and manifest.nodeName == "manifest" | ||
| 1272 | ): | ||
| 1270 | break | 1273 | break |
| 1271 | else: | 1274 | else: |
| 1272 | raise ManifestParseError("no <manifest> in %s" % (path,)) | 1275 | raise ManifestParseError("no <manifest> in %s" % (path,)) |
