Red Hat Bugzilla – Bug 503587
reposync not downloading repodata (just downloads RPMs) for trivial repo
Last modified: 2014-01-21 18:09:47 EST
Steps to Reproduce:
1. mkdir /var/www/html/foo
2. cp bar.rpm into foo
3. createrepo /var/www/html/foo
4. Run reposync
In my case, the actual command I used was:
/usr/bin/reposync -l -m -d --config=/var/www/cobbler/repo_mirror/test/.origin/test.repo --repoid=test --download_path=/var/www/cobbler/repo_mirror
[mdehaan@mdehaan html]$ cat /var/www/cobbler/repo_mirror/test/.origin/test.repo
The repo looks like:
[mdehaan@mdehaan html]$ tree /var/www/html/foo
The mirrored content from reposync is:
[mdehaan@mdehaan html]$ tree /var/www/cobbler/repo_mirror/test
|-- config.repo (this came from cobbler, so disregard this one file)
The output from the reposync command is:
[mdehaan@mdehaan html]$ sudo /usr/bin/reposync -l -m -d --config=/var/www/cobbler/repo_mirror/test/.origin/test.repo --repoid=test --download_path=/var/www/cobbler/repo_mirror
Unable to fetch metadata: requested datatype group not available
[test: 1 of 1 ] Skipping existing python-cheetah-2.2.0-1.fc10.i386.rpm
reposync only mirrored the rpm file itself, and did not create repodata on the remote end
reposync mirrors the xml files
We seem to think this is because the original source repo never had any group content. Reposync should be mirroring the repo whether or not it has group content (because users often don't know anything about groups)
Removal of the -m from the command does not fix the problem.
okay - so the case where a missing comps.xml is now fixed - it won't skip the rest. But keep in mind that --download-metadata won't get the primary/filelists/other metadata b/c that information is path-specific and may not match up with how the files were just downloaded. Reposync intentionally skips those metadata files.
yum-utils-1.1.23-1.fc10 has been submitted as an update for Fedora 10.
yum-utils-1.1.23-1.fc11 has been submitted as an update for Fedora 11.
yum-utils-1.1.23-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.