Bug 1253109 - createrepo_c won't generate xz compressed XML metadata with --xz or --compress-type=xz
Summary: createrepo_c won't generate xz compressed XML metadata with --xz or --compres...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo_c
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mlcoch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-13 02:09 UTC by Neal Gompa
Modified: 2015-08-14 09:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-14 09:29:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Neal Gompa 2015-08-13 02:09:11 UTC
Description of problem:
When using createrepo_c to create repodata that is xz-compressed, it goes ahead and creates gz compressed XML metadata anyway. If I am creating SQLite data too, that data is compressed the way I want it to be, but the XML data is not.

Version-Release number of selected component (if applicable):
createrepo_c-0.9.0-3.fc22

How reproducible:
Always

Steps to Reproduce:
1. Create a folder with some RPMs
2. Run one of the following:
   * createrepo_c --no-database --compress-type=xz <path/to/folder>
   * createrepo_c --database --compress-type=xz <path/to/folder>
   * createrepo_c --no-database --xz <path/to/folder>
   * createrepo_c --database --xz <path/to/folder>

Actual results:
The repodata subfolder contains gz-compressed XML data.

Expected results:
The repodata subfolder contains xz-compressed XML data.

Additional info:
N/A

Comment 1 Tomas Mlcoch 2015-08-14 09:29:28 UTC
Hi Neal,
this is because of compatibility with createrepo.
I don't like it either, but createrepo does exactly the same thing and because createrepo_c is supposed to be drop-in replacement and thus preserve such illogical behaviour.
Maybe I could add some kind of new command line option or something.
Feel free to open an RFE with ideal of how you would like to see this behave.


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