fedora-accounts bz-make-components.py,1.9,1.10
Jeremy Katz (katzj)
fedora-extras-commits at redhat.com
Thu Feb 22 19:28:15 UTC 2007
Author: katzj
Update of /cvs/fedora/fedora-accounts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30201
Modified Files:
bz-make-components.py
Log Message:
cope with multiple owners in owners.list (hopefully)
Index: bz-make-components.py
===================================================================
RCS file: /cvs/fedora/fedora-accounts/bz-make-components.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- bz-make-components.py 19 Dec 2006 18:41:01 -0000 1.9
+++ bz-make-components.py 22 Feb 2007 19:28:13 -0000 1.10
@@ -43,6 +43,18 @@
product, component, description, owner, qa = pieces[:5]
except:
print "Invalid line %s at %s:%s" % (aline, curfile, lnum)
+ cclist = []
+ owners = owner.split(',')
+ owner = owners[0]
+ if len(owners) > 1:
+ for I in owners[1:]:
+ Inum = get_bz_user_id(bzdbh, I)
+ if Inum is None:
+ if not need_emails.has_key(I):
+ need_emails[I] = []
+ need_emails[I].append((product, component, curfile, lnum))
+ continue
+ cclist.append(Inum)
owner_num = get_bz_user_id(bzdbh, owner)
qa_num = get_bz_user_id(bzdbh, qa)
if owner_num is None:
@@ -51,7 +63,6 @@
need_emails[owner].append((product, component, curfile, lnum))
# print "Invalid owner %s at %s:%s" % (owner, curfile, lnum)
continue
- cclist = []
if len(pieces) > 5 and pieces[5]:
for I in pieces[5].split(','):
Inum = get_bz_user_id(bzdbh, I)
More information about the scm-commits
mailing list