+------------------------------------------------------------------------+
| 6461 | Handle KeyError when the ebuild is corrupt. |
| zmedico | |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=6463
print filename+":"
print comment
oldcomment = comment
- licenses = portdb.aux_get(p, ["LICENSE"])[0]
+ try:
+ licenses = portdb.aux_get(p, ["LICENSE"])[0]
+ except KeyError:
+ # Corruption will have been reported above.
+ continue
uselist = []
if "?" in licenses:
pkgsettings.setcpv(p, mydb=portdb)