Commit cd1f80c4 authored by Enrico Zini's avatar Enrico Zini
Browse files

Renamed Key->KeyData to make space for a Key model

parent 88291a69
......@@ -225,7 +225,7 @@ def list_emeritus_dd():
def list_removed_dd():
return _list_keyring("removed-keys.pgp")
class Key(object):
class KeyData(object):
"""
Collects data about a key, parsed from gpg --with-colons --fixed-list-mode
"""
......@@ -531,7 +531,7 @@ class UserKey(object):
# Check key
cmd = self.gpg.keyring_cmd(("debian-keyring.gpg", "debian-nonupload.gpg"), "--keyring", self.keyring, "--check-sigs", self.fpr)
proc, lines = self.gpg.pipe_cmd(cmd)
for key in Key.read_from_gpg(lines):
for key in KeyData.read_from_gpg(lines):
yield key.keycheck()
result = proc.wait()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment