Bug 1287685

Summary: modifyrepo --compress-type xz tracebacks on empty file
Product: Red Hat Enterprise Linux 7 Reporter: Stanislav Zidek <szidek>
Component: createrepoAssignee: Michal Domonkos <mdomonko>
Status: CLOSED ERRATA QA Contact: Eva Mrakova <emrakova>
Severity: low Docs Contact:
Priority: low    
Version: 7.2CC: emrakova, james.antill, vmukhame
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: createrepo-0.9.9-28.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 22:16:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stanislav Zidek 2015-12-02 13:56:10 UTC
Description of problem:
modifyrepo --compress-type xz tracebacks on empty file

Version-Release number of selected component (if applicable):
createrepo-0.9.9-23.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. mkdir x && cd x/
2. createrepo .
3. touch empty
4. modifyrepo --compress-type xz empty repodata/

Actual results:
Traceback (most recent call last):
  File "/usr/share/createrepo/modifyrepo.py", line 234, in <module>
    ret = main(sys.argv[1:])
  File "/usr/share/createrepo/modifyrepo.py", line 227, in main
    repomd.add(metadata, mdtype=opts.mdtype)
  File "/usr/share/createrepo/modifyrepo.py", line 126, in add
    newmd.write(md)
LZMA.error: unknown error!

Expected results:
no traceback

Comment 6 errata-xmlrpc 2017-08-01 22:16:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2024