fedora-accounts export-bugzilla.py, 1.6, 1.7 bz-make-components.py, 1.13, 1.14

Jeremy Katz (katzj) fedora-extras-commits at redhat.com
Mon Jul 2 15:33:49 UTC 2007


Author: katzj

Update of /cvs/fedora/fedora-accounts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29000

Modified Files:
	export-bugzilla.py bz-make-components.py 
Log Message:
bz account names are now all lower-case



Index: export-bugzilla.py
===================================================================
RCS file: /cvs/fedora/fedora-accounts/export-bugzilla.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- export-bugzilla.py	25 Apr 2006 21:37:27 -0000	1.6
+++ export-bugzilla.py	2 Jul 2007 15:33:43 -0000	1.7
@@ -101,7 +101,7 @@
     if arow[4] and not website.have_group(dbh, arow[1], arow[4]):
 	    continue
 
-    user_email = arow[2]
+    user_email = arow[2].lower()
     bzdbc.execute("SELECT userid FROM profiles WHERE login_name = %s", (arow[2],))
     if not bzdbc.rowcount:
         print "Creating BZ account for", arow[2]


Index: bz-make-components.py
===================================================================
RCS file: /cvs/fedora/fedora-accounts/bz-make-components.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- bz-make-components.py	19 Jun 2007 15:00:20 -0000	1.13
+++ bz-make-components.py	2 Jul 2007 15:33:43 -0000	1.14
@@ -15,7 +15,7 @@
 def get_bz_user_id(bzdbh, username):
     bzdbc = bzdbh.cursor()
     bzdbc.execute("SELECT userid FROM profiles WHERE login_name = %s",
-            (username,))
+            (username.lower(),))
     if bzdbc.rowcount:
         return bzdbc.fetchone()[0]
 




More information about the fedora-extras-commits mailing list