-
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
Support skip-broken option for the upgrade command #1036
Conversation
I'll also try to add the corresponding CI test. |
Hmm, although I've added the option to the |
Interesting, but it makes sense. Do I understand correctly that --best is dual to --skip-broken now? If so we should amend compatibility.conf to prevent people from reporting issues like #1033. According to the linked document, --skip-broken is default behavior now. However, right now I observe a different behavior: Fedora 40 has a broken dependency like this:
Adding --no-best reveals many independent updates:
A config dump confims --best is in effect:
I don't have any of them defined in /etc and /usr configuration. |
This is tough question. From libsolv implementation - upgrade job is always optional. If a package is installed then upgrade don't need to be performed.
is failing
is removing I would suggest to not add the option to command because it does not make any difference - it would be there only for compatibility reason and does nothing. But it requires a good documentation in DNF4 vs DNF5 section. This approach is painful. If the option will be implemented then we have to mark it as dummy option that is added only for a compatibility reasons. |
@ppisar It might be surprising, but behavior of DNF and DNF5 does not different much for upgrade. What you reported in #1036 (comment) is mostly related to difference in configuration files. DNF is shipped with https://github.com/rpm-software-management/dnf/blob/master/etc/dnf/dnf.conf (Fedora) or with https://github.com/rpm-software-management/dnf/blob/master/etc/dnf/dnf-strict.conf (RHEL). Without configuration overrides, DNF behaves something between (best is in code The default setting for configuration option For security reasons we have a requirements to set May be we can do something in the middle - when best=false, install possible updates, but when a warning is created return value could be not 0. |
I see my confusion came from dnf.conf(5) which documents Question is whether the manual should document a program default, or the distribution override. Because that or the the other way the manual will disagree with the effective setting either on RHEL or on Fedora. |
6caccb9
to
ae08b94
Compare
I've dropped the commit introducing |
LGTM |
Thanks. The documentation is now much better. |
--skip-broken
option from theupgrade
command--skip-broken
option from the global options documentation, restricting only to related commandsCloses #1033.