-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Pacman: Add support for install reason #4956
Pacman: Add support for install reason #4956
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.
Thanks for your contribution! Please note that you need to include a changelog fragment. I've included some first comments below.
CC @jraby |
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
I agree with felix, we should try yo avoid calling pacman in a loop. (The module was just rewritten to avoid this). Thanks for your contribution! |
SUMMARY
Pacman allows setting the install reason of packages. This PR adds this feature to the pacman module.
By default, no reason is explicitly set and the default behaviour of pacman is left untouched.
reason_for: all
sets the install reason for all packages and represents the behavior of pacman when--asdeps
or--asexplicit
are specified.reason_for: new; reason: dependency
is a combination which is, as far as I know, not possible with pacman but very useful, as this enables specifying all wanted optional dependencies of a package without setting the already explicitly installed ones to dependency.ISSUE TYPE
COMPONENT NAME
pacman