aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/rpm.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sos/plugins/rpm.py b/sos/plugins/rpm.py
index 1d67722b..c93df795 100644
--- a/sos/plugins/rpm.py
+++ b/sos/plugins/rpm.py
@@ -39,8 +39,9 @@ class Rpm(Plugin, RedHatPlugin):
if self.get_option("rpmq"):
query_fmt = '"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}~~'
query_fmt = query_fmt + '%{INSTALLTIME:date}\t%{INSTALLTIME}\t'
- query_fmt = query_fmt + '%{VENDOR}\t%{BUILDHOST}\n"'
- rpmq_cmd = "rpm --nosignature --nodigest -qa --qf=%s" % query_fmt
+ query_fmt = query_fmt + '%{VENDOR}\t%{BUILDHOST}\t'
+ query_fmt = query_fmt + '%{SIGPGP}\t%{SIGPGP:pgpsig}\n"'
+ rpmq_cmd = "rpm --nodigest -qa --qf=%s" % query_fmt
filter_cmd = 'awk -F "~~" ' \
'"{printf \\"%-59s %s\\n\\",\$1,\$2}"|sort'
shell_cmd = "sh -c '%s'" % (rpmq_cmd + "|" + filter_cmd)