aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-10-16 19:12:58 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-10-16 19:12:58 +0100
commitffcde57daa6f6cbbfd9cb588ab64eb485d07d9ca (patch)
tree4e2e1a8ecc34cf18863280f51cf211860dc4a6a1
parente125afd8567c45762fa32f2a13988d87d3edc008 (diff)
downloadsos-ffcde57daa6f6cbbfd9cb588ab64eb485d07d9ca.tar.gz
Verify fewer packages in rpm plug-in
The current default set of packages to verify includes debuginfo and devel subpackages. Filter these out to reduce the time spent running rpm -V. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/rpm.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sos/plugins/rpm.py b/sos/plugins/rpm.py
index 71f36a0c..55c80196 100644
--- a/sos/plugins/rpm.py
+++ b/sos/plugins/rpm.py
@@ -24,7 +24,7 @@ class Rpm(Plugin, RedHatPlugin):
("rpmva", "runs a verify on all packages", "slow", False)]
verify_list = [
- 'kernel', 'glibc', 'initscripts',
+ 'kernel$', 'glibc', 'initscripts',
'pam_.*',
'java.*', 'perl.*',
'rpm', 'yum',
@@ -49,4 +49,7 @@ class Rpm(Plugin, RedHatPlugin):
verify_list = map(pkgs_by_regex, self.verify_list)
for pkg_list in verify_list:
for pkg in pkg_list:
+ if 'debuginfo' in pkg \
+ or pkg.endswith('-debuginfo-common'):
+ continue
self.add_cmd_output("rpm -V %s" % pkg)