]> git.decadent.org.uk Git - dak.git/commitdiff
Use the correct dictionary to lookup name of users.
authorChris Lamb <lamby@debian.org>
Mon, 26 Oct 2009 15:23:56 +0000 (15:23 +0000)
committerChris Lamb <lamby@debian.org>
Mon, 26 Oct 2009 15:24:04 +0000 (15:24 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
dak/import_keyring.py

index 80ba45bd89a9f3d63184b595c6ea9e3244dce620..06597f85176c6077db21ad5200b48bb3ccb8134a 100755 (executable)
@@ -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",