Bug 498767 - createrepo doesn't honour --checksum option
Summary: createrepo doesn't honour --checksum option
Status: CLOSED DUPLICATE of bug 494951
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-05-03 08:08 UTC by Remi Collet
Modified: 2016-09-20 02:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-05-04 14:28:26 UTC

Attachments (Terms of Use)
createrepo-checksum.patch (665 bytes, patch)
2009-05-03 14:19 UTC, Remi Collet
no flags Details | Diff

Description Remi Collet 2009-05-03 08:08:25 UTC
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)

Comment 1 Remi Collet 2009-05-03 14:19:09 UTC
Created attachment 342233 [details]

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.

Comment 2 seth vidal 2009-05-04 14:28:26 UTC
ultimately the same as 494951

and fixed at the same time.

*** This bug has been marked as a duplicate of bug 494951 ***

Note You need to log in before you can comment on or make changes to this bug.