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

automatic: Fix applying the color option #2007

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

jan-kolarik
Copy link
Member

@jan-kolarik jan-kolarik commented Oct 24, 2023

The color option value wasn't passed in dnf-automatic usage so far.

In the standard dnf command, the Term object is created before parsing the entire configuration, including command-line parameters. The Term is reinitialized within Cli.configure if the color option value was changed. In dnf-automatic, where configuration is processed in a single place, we can directly pass the value from the configuration.

This is a follow-up to the #2003.

The `color` option value wasn't passed in `dnf-automatic` usage so far.

In the standard `dnf` command, the `Term` object is created before parsing the entire configuration, including command-line parameters. The `Term` is reinitialized within `Cli.configure` if the `color` option value was changed. In `dnf-automatic`, where configuration is processed in a single place, we can directly pass the value from the configuration.
@kontura kontura merged commit 6a6b575 into master Oct 25, 2023
3 checks passed
@kontura kontura deleted the jkolarik/automatic-color-apply branch October 25, 2023 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants