Bug 1013614 - modifyrepo crashes when a bad checksum type is specified
Summary: modifyrepo crashes when a bad checksum type is specified
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: 19
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: 2013-09-30 13:01 UTC by Tomas Mlcoch
Modified: 2013-10-30 01:54 UTC (History)
2 users (show)

Fixed In Version: createrepo-0.10-1.fc19
Clone Of:
Environment:
Last Closed: 2013-10-30 01:54:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomas Mlcoch 2013-09-30 13:01:23 UTC
Description of problem:
When a bad checksum type is specified, modifyrepo crashesh with python traceback and Abrt detects the problem.

Version-Release number of selected component (if applicable):
Name        : createrepo
Version     : 0.9.9
Release     : 21.fc19

How reproducible:
always

Steps to Reproduce:
modifyrepo --checksum foo file.xml rpms_sss/repodata

Actual results:
Traceback (most recent call last):
  File "/usr/share/createrepo/modifyrepo.py", line 238, in <module>
    ret = main(sys.argv[1:])
  File "/usr/share/createrepo/modifyrepo.py", line 231, in main
    repomd.add(metadata, mdtype=opts.mdtype)
  File "/usr/share/createrepo/modifyrepo.py", line 132, in add
    open_csum = checksum(self.checksum_type, metadata)
  File "/usr/lib/python2.7/site-packages/yum/misc.py", line 355, in checksum
    data = Checksums([sumtype])
  File "/usr/lib/python2.7/site-packages/yum/misc.py", line 273, in __init__
    raise MiscError, 'Error Checksumming, bad checksum type %s' % sumtype
yum.Errors.MiscError: Error Checksumming, bad checksum type foo

Expected results:
Error message about non supported checksum type.

Comment 1 Fedora Update System 2013-10-01 11:54:33 UTC
createrepo-0.9.9-23.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/createrepo-0.9.9-23.fc19

Comment 2 Fedora Update System 2013-10-02 06:50:27 UTC
Package createrepo-0.9.9-23.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing createrepo-0.9.9-23.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-18128/createrepo-0.9.9-23.fc19
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2013-10-18 13:09:22 UTC
createrepo-0.10-0.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/createrepo-0.10-0.fc19

Comment 4 Fedora Update System 2013-10-22 07:32:51 UTC
createrepo-0.10-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/createrepo-0.10-1.fc19

Comment 5 Fedora Update System 2013-10-30 01:54:08 UTC
createrepo-0.10-1.fc19 has been pushed to the Fedora 19 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.