Issue #9055
closedpackage group pulls in newer version of package
Description
I have a package exclusion filter in Katello to reject newer kernels for which I don't yet have compatible versions of out-of-tree modules, but I end up with the latest versions of the perf and kernel-tools packages because they are listed in the @performance and @core package groups, respectively.
So I'd like to propose that package groups only cause a package to be added if some version of the package wasn't already requested. I'm working on a patch.
I will also say, FWIW, that I wasn't expecting these sort of additions to be processed without depsolving enabled, such that my initial line of investigation started with the assumption that I must be accidentally enabling it somehow.
Related issues
Updated by pulpbot over 3 years ago
- Status changed from NEW to POST
Updated by dalley over 3 years ago
Thanks for the report, and especially for the patch!
I will also say, FWIW, that I wasn't expecting these sort of additions to be processed without depsolving enabled, such that my initial line of investigation started with the assumption that I must be accidentally enabling it somehow.
Sorry about the confusion, perhaps we can improve the documentation in this area. Dependency solving is quite tricky because the performance cost of solving a "full" solution is quite high, and yet it's very important to have some basic functionality there. So where we draw the line is ensuring that the most basic and critical dependencies are always copied. For example copying an Errata / Advisory would be worse-than-useless if the RPMs it explicitly references as required updates are not copied along with it.
Your particular use issue does make sense and I think the patch is reasonable at first glance. Will review shortly.
Added by quartsize over 3 years ago
Updated by quartsize over 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset 6eaba3a7e23aa9c710fb52d19c90e4085975aef0.
Updated by dalley over 3 years ago
- Copied to Backport #9076: Backport 9055 "package group copy pulls in newer version of package" to 3.13.z added
Updated by pulpbot over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Only add package from package group if not already selected
closes: #9055 https://pulp.plan.io/issues/9055