From: Chris Lamb Date: Mon, 26 Oct 2009 15:23:56 +0000 (+0000) Subject: Use the correct dictionary to lookup name of users. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=a159377270eef489b6f2303f3d74ead04518fcad;p=dak.git Use the correct dictionary to lookup name of users. Signed-off-by: Chris Lamb --- diff --git a/dak/import_keyring.py b/dak/import_keyring.py index 80ba45bd..06597f85 100755 --- a/dak/import_keyring.py +++ b/dak/import_keyring.py @@ -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",