Bug 1225661
Summary: | DNF isn't picking the package with the highest NVR when 'best' is set | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Brian Lane <bcl> | ||||
Component: | dnf | Assignee: | rpm-software-management | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 22 | CC: | jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, tim.lauridsen, vmukhame | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-19 14:18:02 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Brian Lane
2015-05-27 23:12:23 UTC
Created attachment 1030844 [details]
test-dnf-transaction script
*** This bug has been marked as a duplicate of bug 1225725 *** (In reply to Brian Lane from comment #0) > Is it possible to get DNF to choose the one I want, and if it won't work > exit with an error? If the package has a unique version, specify the version (e.g. "anaconda-23.8"), if the package is in a unique repository, specify the repository (e.g. "dnf repository-packages REPO install anaconda"; using API, you need to query the package "base.sack.query().filter(reponame=REPO)" and install it "base.package_install(pkg)"). Well the point is to not have to specify the NVR. We give lorax a list of repos and DNF should pick the best packages or raise an error if the dependencies of the highest NVR packages cannot be met. As an update, I've added conf.best = True to my config setup in the attached script, expecting that it would at least raise an error that the deps for the newer anaconda version were unresolved, but it does not. It still picks the older version. I'm unduping this since I don't think it is the same issue. In those other bugs they are having dependency problems that can't be resolved at all. In this case there is a resolution, it's just the wrong one. I want to see it complain that anaconda-23.xxx can't be installed instead of it picking anaconda-22.xxx which has complete deps. (In reply to Brian Lane from comment #4) > Well the point is to not have to specify the NVR. We give lorax a list of > repos and DNF should pick the best packages or raise an error if the > dependencies of the highest NVR packages cannot be met. > > As an update, I've added conf.best = True to my config setup in the attached > script, expecting that it would at least raise an error that the deps for > the newer anaconda version were unresolved, but it does not. It still picks > the older version. > > I'm unduping this since I don't think it is the same issue. In those other > bugs they are having dependency problems that can't be resolved at all. In > this case there is a resolution, it's just the wrong one. I want to see it > complain that anaconda-23.xxx can't be installed instead of it picking > anaconda-22.xxx which has complete deps. I'm sorry but I have hard time seeing how this is different than bug 1225725. If you re-read your last sentence, you will see that the problem is exactly the same. Or am I missing something? Reading back the second paragraph of your response, maybe that's what you want this bug report to be about? (the conf.best option behavior) bug 1225725 is about it reporting an error. This bug is about it *not* reporting an error and choosing the package that isn't the higest NVR even when best=True is used. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |