]> git.decadent.org.uk Git - dak.git/commitdiff
remove useless "aliases" entry in Keyring
authorTorsten Werner <twerner@debian.org>
Wed, 5 Jan 2011 20:11:35 +0000 (21:11 +0100)
committerTorsten Werner <twerner@debian.org>
Wed, 5 Jan 2011 20:57:16 +0000 (21:57 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index 25ba49e1e3a3e61b9046fd9de450f4ca8033b4de..1de3674d552c6647f28adf639495975c61e21348 100755 (executable)
@@ -1340,15 +1340,12 @@ class Keyring(object):
                 self.keys[key] = {"email": addr}
                 if name != "":
                     self.keys[key]["name"] = name
-                self.keys[key]["aliases"] = [name]
                 self.keys[key]["fingerprints"] = []
                 signingkey = True
             elif key and field[0] == "sub" and len(field) >= 12:
                 signingkey = ("s" in field[11])
             elif key and field[0] == "uid":
                 (name, addr) = email.Utils.parseaddr(field[9])
-                if name and name not in self.keys[key]["aliases"]:
-                    self.keys[key]["aliases"].append(name)
             elif signingkey and field[0] == "fpr":
                 self.keys[key]["fingerprints"].append(field[9])
                 self.fpr_lookup[field[9]] = key