[master] Do not report patches as installed when not all the related pkgs are installed (yumpkg)#55582
Merged
dwoz merged 11 commits intosaltstack:masterfrom Jan 11, 2020
Conversation
…are installed Co-authored-by: Mihai Dinca <mdinca@suse.de>
…tches-as-installed
Contributor
|
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
Contributor
|
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
This file contains hidden or 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
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_patchesfunction from theyumpkgmodule which affects the output frompkg.list_patchesmethod 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_patchesfunction fromyumpkgparses the output fromyum --quiet updateinfo list allcommand 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