Skip to content

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

Merged
jan-kolarik merged 1 commit intorpm-software-management:dnf-4-masterfrom
kontura:rpm_api_reinstall
Apr 12, 2024
Merged

context: use rpmtsAddReinstallElement() when doing a reinstall#1650
jan-kolarik merged 1 commit intorpm-software-management:dnf-4-masterfrom
kontura:rpm_api_reinstall

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
@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