Bug 1603123
Summary: | API: Querying latest packages returns multiple matches | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lubomír Sedlář <lsedlar> |
Component: | dnf | Assignee: | rpm-software-management |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dmach, mblaha, mhatina, packaging-team-maint, rpm-software-management, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-07-19 11:42:26 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: |
Description
Lubomír Sedlář
2018-07-19 09:00:08 UTC
This is expected behavior. In the past, query().latest() returned only one match and was hiding RPMs with the same NEVRA from different repos. There was also a bug that query().latest(n) returned n packages. Now it returns all packages with n latest NEVRAs. My suggestion is to use either first [0] or last [-1] returned package according what you need to achieve in the program. |