Description of problem:
Packages are only accessible when a specific module or stream is enabled. Reposync is not able to sync the repository because it has to abide by these rules. The workaround would be to enable all modules, sync, then switch to any alternative streams or any remaining un-enabled modules, then sync again.
This should be a simply run reposync and it syncs the entire repository without having to consider what's missing
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. reposync --disablerepo="*" --enablerepo="rhel-8-for-x86_64-appstream-rpms"
reposync only downloads packages that are accessible
reposync should download the entire repository to include modules that are not enabled or even disabled
The other workaround would be to mark the repo as a hotfix repo: add --setopt=repo_id.module_hotfixes=1 switch to command line.
PR https://github.com/rpm-software-management/dnf-plugins-core/pull/339 fixes the bug. Reposync now should download all the packages of the repo regardless the modules/streams status.
The corresponding tests are here: https://github.com/rpm-software-management/ci-dnf-stack/pull/550
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.