Bug 1227782
| Summary: | modifyrepo --compress does not compress gzip files | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Marek Marusic <mmarusic> |
| Component: | createrepo | Assignee: | Michal Domonkos <mdomonko> |
| Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.1 | CC: | emrakova, james.antill, mdomonko, vmukhame |
| Target Milestone: | rc | Keywords: | 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: | |||
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
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 |
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