aboutsummaryrefslogtreecommitdiffstats
path: root/sos.spec
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-08-30 13:31:56 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-11-01 14:17:59 +0000
commit82e4ee224706b5eb377b35f88c852dd79c7cb25d (patch)
treec956599c5b919ff16b161d5acc1c3c9016965d64 /sos.spec
parent4229326964c05e9caf617ac89e1ec69ab4b5c979 (diff)
downloadsos-82e4ee224706b5eb377b35f88c852dd79c7cb25d.tar.gz
[sosreport] add per-plugin package verification lists
Add a new mechanism for plugins to declare a per-plugin list of packages to verify when the global --verify option is enabled. Historically this was implemented in the package manager plugin for each distribution (e.g. rpm.py for Red Hat distros and dpkg.py for the Debian family). This gives limited granularity and blocks the ability to verify only a subset of packages, or to only verify packages for a certain set of plugins. This change adds a new optional member to Plugin: verify_packages which when set will generate an additional command to be run by that plugin. The plugin calls into the PackageManager via the policy class to determine the correct package manager command to run. A plugin can request optional package verification by declaring a new 'verify_packages' member (or building one during setup()): plugin_name = 'foo' packages = ('foo', 'bar', 'baz', 'qux') verify_packages = ('foo', 'bar') Verification is only performed if the --verify switch is used. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos.spec')
0 files changed, 0 insertions, 0 deletions