]> git.decadent.org.uk Git - dak.git/blobdiff - dak/import_keyring.py
Fix utils.build_file_list() for 3.x source packages
[dak.git] / dak / import_keyring.py
index eac8ae5d406a6b89f1d9751698633287ba6fe019..06597f85176c6077db21ad5200b48bb3ccb8134a 100755 (executable)
@@ -140,7 +140,7 @@ class Keyring(object):
                 keys[key]["uid"] = uid
 
                 if keyid != None: continue
-                keyid = get_or_set_uid_id(uid).uid
+                keyid = get_or_set_uid(uid).uid
                 byuid[keyid] = (uid, name)
                 byname[uid] = (keyid, name)
 
@@ -163,7 +163,7 @@ class Keyring(object):
                 keys[x]["uid"] = uid
         if any_invalid:
             uid = format % "invalid-uid"
-            keyid = get_or_set_uid_id(uid).uid
+            keyid = get_or_set_uid(uid).uid
             byuid[keyid] = (uid, "ungeneratable user id")
             byname[uid] = (keyid, "ungeneratable user id")
         return (byname, byuid)
@@ -241,7 +241,7 @@ def main():
     for keyid in desuid_byid.keys():
         uid = (keyid, desuid_byid[keyid][0])
         name = desuid_byid[keyid][1]
-        oname = db_uid_byid[keyid][1]
+        oname = db_uid_byname[keyid][1]
         if name and oname != name:
             changes.append((uid[1], "Full name: %s" % (name)))
             session.execute("UPDATE uid SET name = :name WHERE id = :keyid",