]> git.decadent.org.uk Git - dak.git/commitdiff
Make import_keyring use dbconn.get_or_set_uid.
authorChris Lamb <lamby@debian.org>
Mon, 26 Oct 2009 14:48:15 +0000 (14:48 +0000)
committerChris Lamb <lamby@debian.org>
Mon, 26 Oct 2009 14:48:21 +0000 (14:48 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
dak/import_keyring.py

index 2136709817412649e7b9d92e8540abcbfa6c385e..eac8ae5d406a6b89f1d9751698633287ba6fe019 100755 (executable)
@@ -140,7 +140,7 @@ class Keyring(object):
                 keys[key]["uid"] = uid
 
                 if keyid != None: continue
-                keyid = database.get_or_set_uid_id(uid)
+                keyid = get_or_set_uid_id(uid).uid
                 byuid[keyid] = (uid, name)
                 byname[uid] = (keyid, name)
 
@@ -157,13 +157,13 @@ class Keyring(object):
                 keys[x]["uid"] = format % "invalid-uid"
             else:
                 uid = format % keys[x]["email"]
-                keyid = database.get_or_set_uid_id(uid)
+                keyid = get_or_set_uid(uid).uid
                 byuid[keyid] = (uid, keys[x]["name"])
                 byname[uid] = (keyid, keys[x]["name"])
                 keys[x]["uid"] = uid
         if any_invalid:
             uid = format % "invalid-uid"
-            keyid = database.get_or_set_uid_id(uid)
+            keyid = get_or_set_uid_id(uid).uid
             byuid[keyid] = (uid, "ungeneratable user id")
             byname[uid] = (keyid, "ungeneratable user id")
         return (byname, byuid)