-
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
Add support for name
, pkgs
and diff_attr
parameters to zypperpkg.upgrade()
/yumpkg.upgrade()
#62033
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have debugged this together with @agraul. The PR is LGTM for me.
e2191a2
to
20ffffe
Compare
looks like there is a test failure that might be related to this change |
20ffffe
to
e46ca5d
Compare
After rebasing the PR on top of the current master commit, I don't see the test failure locally anymore. Let's see if jenkins' test executions agree. |
pkg_resource.format_pkg_list expects its `attr` argument to be either a list of attributes or the string "all" to indicate all available attributes should be used for formatting. Fixes: saltstack#62032
diff_attr works just like it does for pkg.install. Having the option to return additional attributes can remove the need for a follow-up list_pkgs call. Fixes: saltstack#62031
e46ca5d
to
f8c99b0
Compare
What does this PR do?
Add
diff_attr
toyumpkg.upgrade()
and add it, together withname
andpkgs
, tozypperpkg.upgrade()
.What issues does this PR fix or reference?
Fixes: #62030
Fixes: #62031
Fixes: #62032
Previous Behavior
name
andpkgs
parameters are ignored inzypperpkg.upgrade()
. Thediff_attr
parameter is ignored by bothyumpkg.upgrade()
andzypperpkg.upgrade()
New Behavior
name
andpkgs
parameters are used inzypperpkg.upgrade
to only update/upgrade the specified package(s).diff_attr
is used byzypperpkg.upgrade()
andyumpkg.upgrade()
to output additional attributes.Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes