Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sbluhm:branches:systemsmanagement:Uyuni:Master
salt
clarify-pkg.installed-pkg_verify-documentation....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File clarify-pkg.installed-pkg_verify-documentation.patch of Package salt
From 837b7804971d920b2236308bf6826f4b26ca6d85 Mon Sep 17 00:00:00 2001 From: Alexander Graul <agraul@suse.com> Date: Fri, 21 Oct 2022 14:39:21 +0200 Subject: [PATCH] Clarify pkg.installed pkg_verify documentation There have been misunderstandings what the pkg_verify parameter does and bug reports that it does not work, based on the wrong assumption that this parameter changes the installation of new packages. The docstring also stated that it was only provided by `yum`, but `zypper` also provides this feature (actually it is `rpm` itself in both cases that does the verification check) Related issue: https://github.com/saltstack/salt/issues/44878 (cherry picked from commit 2ed5f3c29d3b4313d904b7c081e5a29bf5e309c7) --- salt/states/pkg.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/salt/states/pkg.py b/salt/states/pkg.py index 71298e6c7a..59d0270f31 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -1301,14 +1301,15 @@ def installed( .. versionadded:: 2014.7.0 - For requested packages that are already installed and would not be - targeted for upgrade or downgrade, use pkg.verify to determine if any - of the files installed by the package have been altered. If files have - been altered, the reinstall option of pkg.install is used to force a - reinstall. Types to ignore can be passed to pkg.verify. Additionally, - ``verify_options`` can be used to modify further the behavior of - pkg.verify. See examples below. Currently, this option is supported - for the following pkg providers: :mod:`yumpkg <salt.modules.yumpkg>`. + Use pkg.verify to check if already installed packages require + reinstallion. Requested packages that are already installed and not + targeted for up- or downgrade are verified with pkg.verify to determine + if any file installed by the package have been modified or if package + dependencies are not fulfilled. ``ignore_types`` and ``verify_options`` + can be passed to pkg.verify. See examples below. Currently, this option + is supported for the following pkg providers: + :mod:`yum <salt.modules.yumpkg>`, + :mod:`zypperpkg <salt.modules.zypperpkg>`. Examples: -- 2.38.0
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