When trying to generate metadata for an older Fedora version from F-11 using createrepo-0.9.7-6.fc11 with createrepo --checksum sha --database . In the repomd.xml checksum are sha : ok <checksum type="sha">7075fceb5a9c8a9dcde06a6234ee49aa0eaf789b</checksum> But in the primary.xml.gz, sha256 still used <checksum type="sha256" pkgid="YES">75954e069e8eb547633d4e4561e220ba5bdcc7ae22f7405b48b88d8238238bc3</checksum> The medata generated are unusable (as older yum can't check this checksum)
Created attachment 342233 [details] createrepo-checksum.patch Issue seems from yum as yumbased.CreateRepoPackage set sha256 as default checksum type. Here is a simple hack in createrepo which seems to work without changing yum lib. I hope this will help.
ultimately the same as 494951 and fixed at the same time. *** This bug has been marked as a duplicate of bug 494951 ***