feature doesn't seem to be implemented on RHEL-7, tested with
+++ This bug was initially created as a clone of Bug #710469 +++
It came to my attention that the logic for --source in yumdownloader is not going to work with the repos that we've created in the CDN. yumdownloader only looks at repos with a label of <base repo>-source. For example, if you have a repo of binary rpms named rhel-6-workstation-rpms, it expects the SRPMs to be in rhel-6-workstation-rpms-source. However, in the CDN the repo is named rhel-6-workstation-source-rpms.
One low-tech solution would be to have yum downloader check for this pattern as well. Something like:
srcrepo = repo.id.replace('-rpms', '-source-rpms')
if srcrepo in src_repos:
src_repos[srcrepo] = True
Alternatively, we could use yum repo tagging to explicitly list the label of the source repo in the repodata of the binary repo.
This is fixed in el6, so I guess it's a regression. We forgot to turn the rhn_source_repos default to on, so it's a one line change.
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.