[yum-commits] plugins/keys
James Antill
james at osuosl.org
Mon Aug 9 17:37:43 UTC 2010
plugins/keys/keys.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 51d051c67443671899b2e5396b99af7227dcb362
Author: James Antill <james at and.org>
Date: Mon Aug 9 13:36:52 2010 -0400
Display multiple certs, on newer yums ... almost certainly not though
diff --git a/plugins/keys/keys.py b/plugins/keys/keys.py
index 1b980db..3342576 100644
--- a/plugins/keys/keys.py
+++ b/plugins/keys/keys.py
@@ -229,8 +229,12 @@ Created : %s
""" % (rpmkeyid,
key.sum_auth_name, key.sum_auth_email, time.ctime(key.createts))
else:
- gpg_cert = yum.pgpmsg.decode_msg(key.data)
- print """\
+ if yum.__version_info__ > (3, 2, 28):
+ gpg_certs = yum.pgpmsg.decode_msg(key.data, multi=True)
+ else:
+ gpg_certs = [yum.pgpmsg.decode_msg(key.data)]
+ for gpg_cert in gpg_certs:
+ print """\
Type : %s
Rpm Key ID : %s
Key owner : %s
More information about the Yum-commits
mailing list