Bug 1253115 - [rfe] Switch default compression of metadata for mergerepo_c to match createrepo_c
[rfe] Switch default compression of metadata for mergerepo_c to match creater...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: createrepo_c (Show other bugs)
22
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tomas Mlcoch
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-12 23:06 EDT by Neal Gompa
Modified: 2015-08-14 05:23 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-14 05:23:49 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Neal Gompa 2015-08-12 23:06:25 EDT
Description of problem:
mergerepo_c generates metadata with bzip2 compression by default, whereas createrepo_c generates metadata with gzip compression by default. This results in an environment that has metadata with different compression schemes, which may be undesirable.

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

How reproducible:
Always

Steps to Reproduce:
1. Set up two repositories of RPMs
2. Run "mergerepo_c --repo=<path/to/repo1> --repo=<path/to/repo2> -o <path/to/store/data>"

Actual results:
Generates metadata compressed with bzip2

Expected results:
Generates metadata compressed with whatever compression formats were used for initial repository data (though that might be difficult to determine if each repository used different metadata formats). At least the default should be the same as createrepo_c's default.

Additional info:
N/A
Comment 1 Tomas Mlcoch 2015-08-14 05:23:49 EDT
Hi Neal,
this isn't true.
Createrepo_c as well as mergerepo_c as well as createrepo as well as mergerepo generate xml metadata compressed by GZ by default and sqlite metadata compresed by BZ2 by default:

[tmlcoch@blackbox createrepo_c_lib (master)]$ rpm -q createrepo_c
createrepo_c-0.9.0-3.fc22.x86_64
[tmlcoch@blackbox createrepo_c_lib (master)]$ ll test_mergerepo
ls: cannot access test_mergerepo: No such file or directory
[tmlcoch@blackbox createrepo_c_lib (master)]$ mkdir test_mergerepo
[tmlcoch@blackbox createrepo_c_lib (master)]$ mergerepo_c -r file:///home/tmlcoch/git/createrepo_c_lib/rpms_1 -r file:///home/tmlcoch/git/createrepo_c_lib/rpms_3 -o test_mergerepo
[tmlcoch@blackbox createrepo_c_lib (master)]$ ls -1 test_mergerepo/repodata/
0b2f35e4aac6dbe0b40213fdbffd6b934750ab7d0d7792340149225763d7bbf4-primary.xml.gz
2eab278a5e5193838e356542a44cf40ba674fec0b5c12494a989c654dc3d09a4-filelists.xml.gz
3a875c40c8520e3debbf8c79696c3cb28daad7652082a58b3eb17ccae3a67b31-other.sqlite.bz2
65c4f66e2808d328890505c3c2f13bb35a96f457d1c21a6346191c4dc07e6080-updateinfo.xml.gz
e4416ee21f44585834b719504d34aee264b6d844f6521a76720c56883bca7554-filelists.sqlite.bz2
f2ee094c6450484581a3ff89520a066d13f57bd06a8495555dfce178c377f9d5-other.xml.gz
fd5def642d2ff1c1bca29b1ddbe365cf3e46362bd58bf054bb4d74e945a0b7eb-primary.sqlite.bz2
repomd.xml

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