RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1227782 - modifyrepo --compress does not compress gzip files
Summary: modifyrepo --compress does not compress gzip files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: createrepo
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Domonkos
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-03 13:28 UTC by Marek Marusic
Modified: 2017-08-01 22:16 UTC (History)
4 users (show)

Fixed In Version: createrepo-0.9.9-28.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 22:16:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1013601 0 unspecified CLOSED modifyrepo missing <open-size> element and redundant <open-checksum> 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1443405 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Product Errata RHBA-2017:2024 0 normal SHIPPED_LIVE createrepo bug fix update 2017-08-01 19:32:17 UTC

Internal Links: 1013601 1443405

Description Marek Marusic 2015-06-03 13:28:25 UTC
Description of problem:
I tried to add testFile.gz with modifyrepo to repository with compression, but no compression was performed. 

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

How reproducible:
always

Steps to Reproduce:
1. create repository
2. touch testFile.gz
3. modifyrepo --compress testFile.gz repodata/


Actual results:
[tmp.NfgauB01uO]# rpm -q createrepo
createrepo-0.9.9-23.el7.noarch

[tmp.NfgauB01uO]# modifyrepo --compress testFile.gz repodata/
Wrote: /tmp/tmp.NfgauB01uO/repodata/testFile.gz
           type = testFile
       location = repodata/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-testFile.gz
       checksum = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
      timestamp = 1433337663
  open-checksum = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Wrote: /tmp/tmp.NfgauB01uO/repodata/repomd.xml



Expected results:
on RHEL6

[tmp.cKhUkBKUFr]# rpm -q createrepo
createrepo-0.9.9-22.el6.noarch

[tmp.cKhUkBKUFr]# modifyrepo --compress testFile.gz repodata/
Wrote: /tmp/tmp.cKhUkBKUFr/repodata/testFile.gz.gz
           type = testFile
       location = repodata/f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec-testFile.gz.gz
       checksum = f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec
      timestamp = 1433337669.02
  open-checksum = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Wrote: /tmp/tmp.cKhUkBKUFr/repodata/repomd.xml


Additional info:
Also when I use --compress-type bz2 testFile.gz I got on both RHEL6 and RHEL7 not compressed file:
[tmp.cKhUkBKUFr]# modifyrepo --compress-type bz2 testFile.gz repodata/
Wrote: /tmp/tmp.cKhUkBKUFr/repodata/testFile.gz
           type = testFile
       location = repodata/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-testFile.gz
       checksum = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
      timestamp = 1433337934.98
  open-checksum = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Wrote: /tmp/tmp.cKhUkBKUFr/repodata/repomd.xml

but there should be Wrote: /tmp/tmp.cKhUkBKUFr/repodata/testFile.gz.bz2

Comment 2 Stanislav Zidek 2015-11-26 11:42:33 UTC
Even worse, modifyrepo UNPACKS (or tries to unpack) files with .gz suffix and stores them with .gz suffix.

# rpm -q createrepo
createrepo-0.9.9-23.el7.noarch
# echo text >text
# gzip text
# modifyrepo --compress --compress-type gz text.gz repodata/
Wrote: /tmp/tmp.3QGmEu7NeV/repodata/text.gz
           type = text
       location = repodata/b9e68e1bea3e5b19ca6b2f98b73a54b73daafaa250484902e09982e07a12e733-text.gz
       checksum = b9e68e1bea3e5b19ca6b2f98b73a54b73daafaa250484902e09982e07a12e733
      timestamp = 1448538058
  open-checksum = 7a961387ffc7799cceccc188236d17bd3bdae7fe4a84a228797922844a746b9b
Wrote: /tmp/tmp.3QGmEu7NeV/repodata/repomd.xml
# file repodata/b9e68e1bea3e5b19ca6b2f98b73a54b73daafaa250484902e09982e07a12e733-text.gz 
repodata/b9e68e1bea3e5b19ca6b2f98b73a54b73daafaa250484902e09982e07a12e733-text.gz: ASCII text
# cat repodata/b9e68e1bea3e5b19ca6b2f98b73a54b73daafaa250484902e09982e07a12e733-text.gz
text

Comment 14 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


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