Red Hat Bugzilla – Bug 173322
yumdownloader doesent work properly with extras src rpms by default
Last modified: 2013-01-09 20:20:05 EST
Description of problem:
with default configuration its not possible to yumdownloader --source dosbox.
should work in my eyes since extras is enabled by default.
Version-Release number of selected component (if applicable):
latest fc4 rel
Steps to Reproduce:
1. install fedora core 4
2. yumdownloader --source dosbox (for example)
yumdownloader --source dosbox
Cannot find a valid baseurl for repo: updates-released
Traceback (most recent call last):
File "/usr/bin/yumdownloader", line 130, in ?
File "/usr/bin/yumdownloader", line 70, in main
my = initYum(opts.source)
File "/usr/bin/yumdownloader", line 43, in initYum
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 225, in doRepoSetup
File "repos.py", line 544, in baseurlSetup
File "repos.py", line 427, in check
yum.Errors.RepoError: Cannot find a valid baseurl for repo: updates-released
yumdownloader should use the yum configuration properly (mirrorlists etc) to be
able to grab src files from all enabled repos.
no clue where the bug occurs i was too lazy to look into the source.
This isn't really a bug in yum-utils but in the lack of configuration files for
the source repo tree. This ought to be moved to component "fedora-release", but
there's no bugzilla component for that. (?!)
well also the exception should be handled properly.
Okay, sure. :)
problem also occurs with updates repository
I'm going to look into having a sources repo configured in the release and
available on the mirrors for FC5.
It would also be good to get repodata for the SRPMS directories for base and
Also, I would suggest using a consistent naming for the repositories. Like
base-source, updates-sources, extras-source. That way, doing
'--enablerepo=\*-source' would select all the source repos. It could even be
done automatically by 'yumdownloader --source'.
Fedora-release package in rawhide includes -source repos for base, updates,
extras, development. Also -debuginfo for these. repodata is generated for
these dirs too.