summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-17 12:12:54 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-17 12:12:54 -0800
commit8c0c18edea6d74229dd0e14d22069daaaacd5796 (patch)
tree0bdb58ce622952bb328f6a52ef4c7d86e27a2347
parenta5c018ada170d8d14f25dee5e1d61c87580f623e (diff)
downloadportage-8c0c18edea6d74229dd0e14d22069daaaacd5796.tar.gz
portage-8c0c18edea6d74229dd0e14d22069daaaacd5796.tar.bz2
portage-8c0c18edea6d74229dd0e14d22069daaaacd5796.zip
repoman: handle ElementTree.ParseError
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 1e1b1467a..c43493b99 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1391,7 +1391,7 @@ for x in scanlist:
os.path.join(checkdir, "metadata.xml"),
parser=xml.etree.ElementTree.XMLParser(
target=_MetadataTreeBuilder()))
- except (ExpatError, EnvironmentError) as e:
+ except (xml.etree.ElementTree.ParseError, ExpatError, EnvironmentError) as e:
metadata_bad = True
stats["metadata.bad"] += 1
fails["metadata.bad"].append("%s/metadata.xml: %s" % (x, e))