Skip to content
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

refactor --setopts handling #464

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from

Conversation

oliverkurth
Copy link
Contributor

@oliverkurth oliverkurth commented Jan 11, 2024

This is a draft, not yet ready to submit.

This refactors the implementation of --setopt= for parity with dnf: any setting with --setopt should override config settings, or in the case of lists (like baseurl) append to them. With the patterns --setopt=<repo>.foo= a setting in the repo config will be reset.

This also adds support for all rpm transaction flags, and support for setting them in the config file.

TODO:

  • replace TDNFHasOpt() in client/plugins.c
  • replace AddSetOptWithValues in tools/cli/lib/parseargs.c

@oliverkurth oliverkurth marked this pull request as draft January 11, 2024 19:36
@oliverkurth oliverkurth force-pushed the topic/okurth/refactor-setopts branch 4 times, most recently from 36c6c5c to 90f52ac Compare January 25, 2024 21:09
@oliverkurth oliverkurth marked this pull request as ready for review January 26, 2024 20:38
@oliverkurth oliverkurth force-pushed the topic/okurth/refactor-setopts branch from 90f52ac to ef02abe Compare May 7, 2024 22:04
@oliverkurth oliverkurth force-pushed the topic/okurth/refactor-setopts branch from ef02abe to 0d46923 Compare July 25, 2024 21:45
@oliverkurth oliverkurth force-pushed the topic/okurth/refactor-setopts branch from 0d46923 to 2f20038 Compare September 11, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants