From b7de904550c68cde24d7a7bff2b883ab6e3ee9cb Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Thu, 30 Dec 2010 00:10:05 +0100 Subject: [PATCH] do no longer automatically update UIDs - ... because we want to have control over the UIDs. Signed-off-by: Torsten Werner --- dak/import_keyring.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/dak/import_keyring.py b/dak/import_keyring.py index e26eb7e5..cedd60c2 100755 --- a/dak/import_keyring.py +++ b/dak/import_keyring.py @@ -198,14 +198,9 @@ def main(): session.flush() else: - if newuid and olduid != newuid: - if olduid != -1: - changes.append((newuiduid, "Linked key: %s" % f)) - changes.append((newuiduid, " (formerly belonging to %s)" % (db_uid_byid[olduid][0]))) - else: - changes.append((newuiduid, "Linked key: %s" % f)) - changes.append((newuiduid, " (formerly unowned)")) - + if newuid and olduid != newuid and olduid == -1: + changes.append((newuiduid, "Linked key: %s" % f)) + changes.append((newuiduid, " (formerly unowned)")) session.execute("UPDATE fingerprint SET uid = :uid WHERE id = :fpr", {'uid': newuid, 'fpr': oldfid}) -- 2.39.5