extras-repoclosure PackageOwners.py,1.13,1.14
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Sun Nov 25 01:07:23 UTC 2007
Author: mschwendt
Update of /cvs/fedora/extras-repoclosure
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18659
Modified Files:
PackageOwners.py
Log Message:
add comment about the pipe/backslash escape in the pkgdb owners.list dump // catch FAS fields IndexError exceptions and print the offending line
Index: PackageOwners.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/PackageOwners.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- PackageOwners.py 29 Aug 2007 20:48:10 -0000 1.13
+++ PackageOwners.py 25 Nov 2007 01:07:21 -0000 1.14
@@ -124,6 +124,9 @@
continue
try:
(repo,pkgname,summary,emails,qacontact,cc) = line.rstrip().split('|')
+ # This is commented, because we don't need the summary.
+ #summary.replace(r'\u007c','|').replace('\u005c','\\')
+
# The PkgDb includes repo's other than Fedora (Fedora EPEL,
# Fedora OLPC, and Red Hat Linux, for example). Skip them.
if repo != self.repoid:
@@ -246,8 +249,12 @@
self.usermap = {}
for line in fasdump:
fields = line.split(',')
- user = fields[0]
- addr = fields[1]
+ try:
+ user = fields[0]
+ addr = fields[1]
+ except IndexError:
+ print line
+ raise
if (addr.find('@') < 0): # unexpected, no addr
print 'No email in:', line
raise Exception
More information about the scm-commits
mailing list