Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
salt.3776
0029-Do-not-include-gpg-pubkey-packages-filteri...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0029-Do-not-include-gpg-pubkey-packages-filtering-by-thei.patch of Package salt.3776
From 91995dcc04325570802cb0f6aa5e8357d603c59d Mon Sep 17 00:00:00 2001 From: Bo Maryniuk <bo@suse.de> Date: Wed, 23 Nov 2016 18:35:43 +0100 Subject: [PATCH 29/38] Do not include "gpg-pubkey" packages, filtering by their name --- salt/modules/rpm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/modules/rpm.py b/salt/modules/rpm.py index 22f0d93..97dd468 100644 --- a/salt/modules/rpm.py +++ b/salt/modules/rpm.py @@ -564,6 +564,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'] -- 2.10.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor