-
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
[2018.3] Do not report patches as installed when not all the related pkgs are installed (yumpkg) #52657
Closed
meaksh
wants to merge
5
commits into
saltstack:2018.3
from
meaksh:2018.3-yumpkg-do-not-report-uninstalled-patches-as-installed
Closed
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
Looking at the output from the
|
@meaksh Thanks for the PR, logic looks correct, we do need a test for this change though. 😄 |
garethgreenaway
added
the
Needs-Testcase
PR needs test cases written, or the issue is about a bug/feature that needs test cases
label
Jun 25, 2019
…are installed Co-authored-by: Mihai Dinca <mdinca@suse.de>
meaksh
force-pushed
the
2018.3-yumpkg-do-not-report-uninstalled-patches-as-installed
branch
from
July 1, 2019 14:25
6380445
to
aac8210
Compare
@garethgreenaway - done! here you have a unit test! 😄 👍 |
garethgreenaway
removed
the
Needs-Testcase
PR needs test cases written, or the issue is about a bug/feature that needs test cases
label
Jul 2, 2019
@meaksh Awesome! Thanks! |
…tches-as-installed
Closing in favor of #55582 |
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.
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