mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-10-07 18:22:14 +08:00
34acdd253439448b6c08c3abfc5e7b8bd03f383f
If the first line of manifest.xml is a XML comment, root.childNodes[0] is not a 'manifest' element node. The python minidom module will makes a 'Comment' node as root.childNodes[0]. Since the original code only checks whether the first child node is 'manifest', it couldn't do any command including 'sync' due to the 'ManifestParseError' exception. This patch could allow the comments between '<?xml ...?>' and '<manifest>' in the manifest.xml file. Change-Id: I0b81dea4f806965eca90f704c8aa7df49c579402
Description
Languages
Python
99.2%
Shell
0.8%