Red Hat Bugzilla – Bug 506459
Update to 0.9.7-7.fc10 broke repodata for clients (RHEL5 at least)
Last modified: 2016-09-19 22:39:55 EDT
My main Fedora 10 workstation just got updated with createrepo-0.9.7-7.fc10.noarch. Now when I create repodata using :
createrepo -d --unique-md-filenames -x '*.src.rpm' -x '*-debuginfo-*.rpm' mydir
All of my RHEL servers (yum-3.2.19-18.el5) fail to read the repodata with the following error :
http://myrepo/repodata/2ce435c1dc068156ae73248ec8abb4d641cf0aadbd8799dbe7bdd6074abc1ecb-primary.sqlite.bz2: [Errno -3] Error performing checksum
I just downgraded to the original Fedora 10 createrepo-0.9.6-3.fc10.noarch and everything works normally again (I had to downgrade yum too, though). I'm unsure of what the latest version I had been running was, but it was also working fine. I haven't tried with any other clients, just RHEL5.
Use "--checksum sha", or install hashlib on from EPEL on the el5 boxes.
From "createrepo --help" :
-s SUMTYPE, --checksum=SUMTYPE
So the workaround is to use a deprecated option? Seems weird. I really think the Fedora 10 package should at least be changed to default to the same repodata format the previous Fedora 10 packages had in order to not break existing setups.
the docs in createrepo have been fixed in a version of createrepo not yet pushed to f10.