Description of problem:
When using reposync to sync a repo using the --newest option, modules that share a name, but have multiple streams only sync the most recent stream instead of syncing the newest package from both streams. As an example, the following are the available perl module streams:
perl 5.24 common [d], minimal Practical Extraction and Report Language
perl 5.26 [d] common [d], minimal Practical Extraction and Report Language
If you use reposync with --newest on RHEL 8, you end up only syncing the 5.26 stream, and you don't get any packages from the 5.24 stream.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. # reposync --repoid=rhel-8-for-x86_64-appstream-rpms --newest
The reposync command only obtains the newest stream instead of the newest package from each stream
The reposync command should obtain the newest package from each stream, instead of only obtaining the newest stream
It should be noted, that even fixing this, modules will still be a bit odd with --newest. The reason being, that in order to have module metadata you'll have to reposync with the --download-metadata option still, and in that situation you'll have metadata for packages that you don't actually have downloaded. This shouldn't prove to cause any dependency issues in the resulting synced repo though as far as I can tell.
I create a patch (https://github.com/rpm-software-management/dnf-plugins-core/pull/375) that will download all latest non-modular packages plus all
packages for contexts with latest version for each module stream. The new behavior will be perfectly visible with perl and perl-DBI modules.
Is the new behavior according to customer needs?
*** Bug 1776410 has been marked as a duplicate of this bug. ***
(In reply to Jaroslav Mracek from comment #3)
> Is the new behavior according to customer needs?
From what I see on the PR that appears to be exactly what is desired thanks!
*** Bug 1807830 has been marked as a duplicate of this bug. ***
> Fixed In Version: dnf-plugins-core-4.0.12-2.el8
Do you have an ETA for this version? Is there any updates testing repository where this version could be downloaded from?
The fixed package is part of RHEL 8.2, which according to the post https://www.redhat.com/en/about/press-releases/red-hat-delivers-force-multiplier-enterprise-it-enhanced-intelligent-monitoring-unveils-latest-version-red-hat-enterprise-linux-8 is now generally available.
It doesn't appear to be possible to download it quite yet, but should be soon.
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.