Issue #9055
closed
package group pulls in newer version of package
Status:
CLOSED - CURRENTRELEASE
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.
- Status changed from NEW to POST
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.
- Status changed from POST to MODIFIED
- Sprint/Milestone set to 260
- Copied to Backport #9076: Backport 9055 "package group copy pulls in newer version of package" to 3.13.z added
- Sprint/Milestone changed from 260 to 3.14.0
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Also available in: Atom
PDF
Only add package from package group if not already selected
closes: #9055 https://pulp.plan.io/issues/9055