projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6537065
)
repoman: handle ElementTree.ParseError
author
Zac Medico
<zmedico@gentoo.org>
Fri, 17 Dec 2010 20:12:54 +0000
(12:12 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 17 Dec 2010 21:16:38 +0000
(13:16 -0800)
bin/repoman
patch
|
blob
|
history
diff --git
a/bin/repoman
b/bin/repoman
index 95a8514c5ba96538774aec8a7efca343973e61f5..9265c0e412c53f67ff492fbafc844dcf1131010d 100755
(executable)
--- a/
bin/repoman
+++ b/
bin/repoman
@@
-1388,7
+1388,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))