]> git.decadent.org.uk Git - dak.git/commitdiff
do no longer automatically update UIDs
authorTorsten Werner <twerner@debian.org>
Wed, 29 Dec 2010 23:10:05 +0000 (00:10 +0100)
committerTorsten Werner <twerner@debian.org>
Fri, 31 Dec 2010 10:50:05 +0000 (11:50 +0100)
- ... because we want to have control over the UIDs.

Signed-off-by: Torsten Werner <twerner@debian.org>
dak/import_keyring.py

index e26eb7e54d390d46641a506fba310427262267ee..cedd60c2084424d28f11ebbaf50d07df47c57f20 100755 (executable)
@@ -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})