From ffcde57daa6f6cbbfd9cb588ab64eb485d07d9ca Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 16 Oct 2013 19:12:58 +0100 Subject: 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 --- sos/plugins/rpm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit