Bug 2151910
| Summary: | yum check-update incorrectly reports source packages as updates | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | jcastran | |
| Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> | |
| Status: | CLOSED ERRATA | QA Contact: | Tomáš Bajer <tbajer> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 8.7 | CC: | james.antill, kwalker, mbanas, mblaha, nsella, tbajer | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | All | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | dnf-4.7.0-17.el8 | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2203069 (view as bug list) | Environment: | ||
| Last Closed: | 2023-11-14 15:49:42 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2203069 | |||
|
Description
jcastran
2022-12-08 14:36:34 UTC
So, this looks to be due to:
dnf/cli/cli.py
check_updates()
-> returnPkgLists()
dnf/base.py
-> _do_package_lists()
-> _list_pattern()
Where, _list_pattern() will return src RPMs. The solution looks to be something like passing in something like a new "include_src=True" default argument into _do_package_lists that can be overridden in the returnPkgLists() callpath.
Filed PR upstream to illustrate what I mean by the above, feel free to make alterations/changes. I've created a test for the issue: https://github.com/rpm-software-management/ci-dnf-stack/pull/1198 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (dnf bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:7122 |