If parsing the manifests fails, reset the XmlManifest object

so that if it's called again, we see the correct errors.

Change-Id: I909488feeac04aecfc92a9b5d6fb17827ef2f213
This commit is contained in:
Joe Onorato 2013-01-11 12:35:53 -08:00 committed by Conley Owens
parent c59bafffb9
commit 26e2475a0f

View File

@ -352,7 +352,13 @@ class XmlManifest(object):
except OSError: except OSError:
pass pass
self._ParseManifest(nodes) try:
self._ParseManifest(nodes)
except ManifestParseError as e:
# There was a problem parsing, unload ourselves in case they catch
# this error and try again later, we will show the correct error
self._Unload()
raise e
if self.IsMirror: if self.IsMirror:
self._AddMetaProjectMirror(self.repoProject) self._AddMetaProjectMirror(self.repoProject)