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

context: use rpmtsAddReinstallElement() when doing a reinstall #1650

Merged

Conversation

kontura
Copy link
Contributor

@kontura kontura commented Apr 8, 2024

rpmtsAddInstallElement() doesn't work for all reinstall cases, such as when a package Provides and Conflicts with the same capability.

Fixes: rpm-software-management/microdnf#137

`rpmtsAddInstallElement()` doesn't work for all reinstall cases, such as
when a package `Provides` and `Conflicts` with the same capability.

Fixes: rpm-software-management/microdnf#137
@kontura
Copy link
Contributor Author

kontura commented Apr 8, 2024

@jan-kolarik jan-kolarik self-assigned this Apr 11, 2024
@jan-kolarik
Copy link
Member

LGTM, but lot of tests are failing on F40+ (but possibly unrelated) ...

@kontura
Copy link
Contributor Author

kontura commented Apr 12, 2024

LGTM, but lot of tests are failing on F40+ (but possibly unrelated) ...

I have check it and the fails are indeed not related. Most of them are caused by a change in smartcols, one is some problem with installing plugins and the last one is a change of curl error.

@jan-kolarik jan-kolarik merged commit 85432df into rpm-software-management:dnf-4-master Apr 12, 2024
9 of 11 checks passed
@mlschroe
Copy link
Contributor

I don't see how this can make a difference with non-ancient rpm versions.

@mlschroe
Copy link
Contributor

(OTOH maybe libdnf does a install instead of an update?)

@kontura
Copy link
Contributor Author

kontura commented Apr 12, 2024

(OTOH maybe libdnf does a install instead of an update?)

For updates it is using rpmtsAddInstallElement(...) with the upgrade parameter set.

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.

microdnf cannot reinstall curl-minimal
3 participants