-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[master] Do not report patches as installed when not all the related pkgs are installed (yumpkg) #55582
Merged
dwoz
merged 11 commits into
saltstack:master
from
meaksh:master-yumpkg-do-not-report-uninstalled-patches-as-installed
Jan 11, 2020
Merged
[master] Do not report patches as installed when not all the related pkgs are installed (yumpkg) #55582
dwoz
merged 11 commits into
saltstack:master
from
meaksh:master-yumpkg-do-not-report-uninstalled-patches-as-installed
Jan 11, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…are installed Co-authored-by: Mihai Dinca <mdinca@suse.de>
…tches-as-installed
I've merged the latest master into your branch - there were a bunch of the same test failures on several different branches, but they didn't seem related to this PR so I'm guessing that they got fixed in the most recent |
…tches-as-installed
…tches-as-installed
…tches-as-installed
…tches-as-installed
…tches-as-installed
There was one failure here: https://jenkinsci.saltstack.com/job/pr-windows2016-py3/job/PR-55582/7/ but that didn't look related. I went ahead and merged master in again 🤞 |
dwoz
approved these changes
Jan 11, 2020
meaksh
deleted the
master-yumpkg-do-not-report-uninstalled-patches-as-installed
branch
January 13, 2020 08:59
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR ports #52657 to master branch, and fixes an issue at 2019.2.x release.
What does this PR do?
This PR fixes an issue in the
_get_patches
function from theyumpkg
module which affects the output frompkg.list_patches
method on yum based systems. Currently, this function is reporting that a given patch is "installed" even when not all its related packages are actually installed on the system.The
_get_patches
function fromyumpkg
parses the output fromyum --quiet updateinfo list all
command in order to figure out which patches are "available/installed". But there is a problem when this output is handled so the resulting dictionary is setting any patch as "installed" as soon as one of its related packages is installed. The right behavior here would be to set a patch as "installed" only if all its related packages are installed.Previous Behavior
An example with a patch named
suse-res7ct-client-tools-201705-13137
:New Behavior
Tests written?
No
Commits signed with GPG?
Yes