Merge pull request #37884 from isbm/isbm-zypper-gpgkey-pkg-filter

Do not include "gpg-pubkey" packages, filtering by their name
This commit is contained in:
Mike Place 2016-11-28 14:11:37 -07:00 committed by GitHub
commit e539a94a56

View File

@ -601,6 +601,9 @@ def info(*packages, **attr):
ret = dict()
for pkg_data in reversed(sorted(_ret, cmp=lambda a_vrs, b_vrs: version_cmp(a_vrs['edition'], b_vrs['edition']))):
pkg_name = pkg_data.pop('name')
# Filter out GPG public keys packages
if pkg_name.startswith('gpg-pubkey'):
continue
if pkg_name not in ret:
ret[pkg_name] = pkg_data.copy()
del ret[pkg_name]['edition']