-
Notifications
You must be signed in to change notification settings - Fork 98
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
Additional features for config-manager #1128
Merged
pkratoch
merged 5 commits into
rpm-software-management:main
from
jrohel:dnf5/config_manager2
Mar 8, 2024
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
46bd0e9
[dnf5 plugin] config-manager: Add repoid to generated repository name
jrohel 53c48d6
[dnf5 plugin] config-manager: Improve comments about crc32, rename func
jrohel f0f0bcb
[dnf5 plugin] config-manager: unsetopt: Log warn for unused key/repoid
jrohel e9560ed
[dnf5 plugin] config-manager: unsetvar: Log warn for unused vars
jrohel 3d2e4c6
[dnf5 plugin] config-manager: Write warnings to stderr too
jrohel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
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.
This is not a problem of this PR, but I encountered this:
When I run
dnf5 config-manager unsetopt fedora.gpgcheck
(or any other option), there is no output, but nothing gets changed. Only when I finally looked at logs, I noticed there isconfig-manager: Request to remove repository option but config file not found: /etc/dnf/repos.override.d/99-config_manager.repo
.Shouldn't this file get created if it doesn't exist yet? Or am I missing something?
Moreover, this makes me think even more that the warnings should get also on the stderr, because it took me some time to figure out why nothing is happening.
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.
@pkratoch
No. The file contains overrides of repository configuration. A non-existent file has the same meaning as an empty file - no overrides are defined.
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.
Ah, right. It doesn't make sense to create the file for unsetting the options. I was confused only because I initially expected the original repo file to be modified and seemingly nothing happened when I run the
unsetopt
command. But now I see it only works over the overrides and the error message makes that clear.