-
Notifications
You must be signed in to change notification settings - Fork 93
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
Recommend --use-host-config if --installroot is used and not all repositories can be enabled #1760
Recommend --use-host-config if --installroot is used and not all repositories can be enabled #1760
Conversation
…sitories can be enabled It was reported that --installroot with an explicit --repo option does not recognize given repository despite the repository is defined under /etc: $ dnf --installroot /tmp/dnf5/ --releasever rawhide --repo koji makecache No matching repositories for "*, koji". Add "--help" for more information about the arguments. That's a feature, but a difference from DNF4. This patchs recommeds using --use-host-config in that case. We already have a similar recommendation in main.cpp in case of no --repo option is used. This patch also fixes formatting of the list of repository identifiers with respect to localization. The code duplicates throws because libdnf5 exception construtors do not accept nonstatic arguments. Resolves rpm-software-management#1756
The formatting errors were fixed by #1762. They are not related to this PR. |
This patch changes a text of an error message and thus these tests needs to adjust:
@kontura, are you fine with the new error message? If so, I will change the tests. |
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.
The message looks good to me.
…sitories can be enabled Adpapt tests to a new error message wording when an installroot is used and a repository cannot be enabled or disabled. Related: rpm-software-management/dnf5#1760
…sitories can be enabled Adapt tests to a new error message wording when an installroot is used and a repository cannot be enabled or disabled. Related: rpm-software-management/dnf5#1760
Thank you. |
b977f59
…sitories can be enabled Adapt tests to a new error message wording when an installroot is used and a repository cannot be enabled or disabled. Related: rpm-software-management/dnf5#1760
It was reported that --installroot with an explicit --repo option does not recognize given repository despite the repository is defined under /etc:
That's a feature, but a difference from DNF4.
This patchs recommeds using --use-host-config in that case. We already have a similar recommendation in main.cpp in case of no --repo option is used.
This patch also fixes formatting of the list of repository identifiers with respect to localization.
The code duplicates throws because libdnf5 exception construtors do not accept nonstatic arguments.
Resolves #1756