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

Upgrading obsoleted package with --best doesn't keep reason #1783

Open
pkratoch opened this issue Oct 18, 2024 · 3 comments
Open

Upgrading obsoleted package with --best doesn't keep reason #1783

pkratoch opened this issue Oct 18, 2024 · 3 comments
Labels
Priority: LOW Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take

Comments

@pkratoch
Copy link
Contributor

pkratoch commented Oct 18, 2024

If an obsoleted package is installed as a dependency, and it is then upgraded and therefore replaced with its obsoleter, the new package is marked as userinstalled.

This is a regression, in dnf4 there was a bug https://bugzilla.redhat.com/show_bug.cgi?id=1672618 which was fixed by rpm-software-management/libdnf#772 and rpm-software-management/dnf#1459 . However, I think it doesn't work even for dnf4 now. The tests for the bug were created before the bug was fixed and the one for --best was marked as xfail and never enabled after the bug was fixed: rpm-software-management/ci-dnf-stack@54a10ce

@kontura
Copy link
Contributor

kontura commented Oct 21, 2024

Recently I created a related CI test: rpm-software-management/ci-dnf-stack#1567
It is for a user installed obsoleted package.

@pkratoch
Copy link
Contributor Author

Recently I created a related CI test: rpm-software-management/ci-dnf-stack#1567 It is for a user installed obsoleted package.

Great, that's basically the same, but with keeping reason "user" instead of "dependency". Plus having more obsoleters. And it doesn't behave differently for --best vs. --nobest. It might be also added to the two scenarios in the install-obsoletes.feature, so that they are all at the same place.

@kontura
Copy link
Contributor

kontura commented Oct 23, 2024

That is a good idea, I have moved the test to install-obsoletes.feature.

@pkratoch pkratoch added Priority: LOW Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: LOW Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
None yet
Development

No branches or pull requests

2 participants