Bug 1054682 - createrepo --update does not always honor --checksum.
Summary: createrepo --update does not always honor --checksum.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-17 09:35 UTC by Zdeněk Pavlas
Modified: 2014-02-22 00:59 UTC (History)
5 users (show)

Fixed In Version: createrepo-0.10.3-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-22 00:59:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1003925 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1003925

Description Zdeněk Pavlas 2014-01-17 09:35:50 UTC
Description of problem:

The --checksum option correctly sets the metadata checksum type.  However, when using the --update mode, package checksums are not re-calculated.  The previous checksum type and value stored in primary.sqlite is used instead.

How reproducible:

Always.

Steps to Reproduce:

1. have a package in "."
2. createrepo . --simple-md-filenames --checksum md5
3. createrepo . --simple-md-filenames --checksum sha256 --update
4. zgrep checksum repodata/primary.xml.gz

Actual results:

  <checksum type="md5" pkgid="YES">49e57da5f7ce350fbdcb2bf7ae4e9fb7</checksum>

Expected results:

  <checksum type="sha256" pkgid="YES">089b2ccbd14131dc5dbe9a092aca8db6122b7ccf324c7f43ba1b4675b4b3c448</checksum>

Additional info:

Dropping the --update flag works around the bug.

Comment 3 Fedora Update System 2014-02-13 12:32:08 UTC
createrepo-0.10.3-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/createrepo-0.10.3-1.fc20

Comment 4 lnie 2014-02-14 04:06:49 UTC
createrepo-0.10.3-1.fc20 works fine

Comment 5 Fedora Update System 2014-02-14 08:10:55 UTC
Package createrepo-0.10.3-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing createrepo-0.10.3-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2527/createrepo-0.10.3-1.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-02-22 00:59:41 UTC
createrepo-0.10.3-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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