-
Notifications
You must be signed in to change notification settings - Fork 294
CA-405643: Update DNF to DNF5 #6316
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
Conversation
|
065b6dc to
b4199b1
Compare
dnf has been updated to dnf5 during clean rebuild event for XS9, The command line interface changed and we need to update accordingly https://dnf5.readthedocs.io/en/latest/changes_from_dnf4.7.html Following commands update are necessary for DNF5 update - updateinfo -> advisory - config-manager "--save --setopt" -> "setopt" - reposync removed "--downloadcomps" as it is the default behavior - repoquery format output no longer has line breaker, add `\n` in format argument to bring it back and align with YUM - repoquery drop "-a" option as it is default behavior Also improve the code with strong type checking - Available|Updates for two kinds of updateinfo instead of string Signed-off-by: Lin Liu <[email protected]>
b4199b1 to
57eba37
Compare
|
I'm urprised all this changes still work with XS8, is it using DNF5 interface in a backwards compatible fashion, so it works with both the old and the new cli interface? |
No, XS8 use yum, thus, the command line interface compatibility is broken, |
|
Ah, yes, I forgot xs8 wasn't using dnf at all |
| in | ||
| ignore (Helpers.call_script ~log_output:Helpers.On_failure cmd params) | ||
| let config_repo config = | ||
| if List.length config <> 0 then (* Set params to yum/dnf *) |
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.
It would be better to test against [].
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.
xenrt has covered that.
dnf has been updated to dnf5 during clean rebuild event for XS9, The command line interface changed and we need to update accordingly https://dnf5.readthedocs.io/en/latest/changes_from_dnf4.7.html
Following commands update are necessary for DNF5 update
\nin format argument to bring it back and align with YUM