mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
e539a94a56
1 changed files with 3 additions and 0 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Reference in a new issue