Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
cd1f80c4
Commit
cd1f80c4
authored
May 15, 2016
by
Enrico Zini
Browse files
Renamed Key->KeyData to make space for a Key model
parent
88291a69
Changes
1
Hide whitespace changes
Inline
Side-by-side
keyring/models.py
View file @
cd1f80c4
...
...
@@ -225,7 +225,7 @@ def list_emeritus_dd():
def
list_removed_dd
():
return
_list_keyring
(
"removed-keys.pgp"
)
class
Key
(
object
):
class
Key
Data
(
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
Key
Data
.
read_from_gpg
(
lines
):
yield
key
.
keycheck
()
result
=
proc
.
wait
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment