From 48c58ceb4432e7258e0efaf4d0e0404702eb3dea Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Wed, 6 Nov 2024 09:25:35 -0500 Subject: [PATCH 2/2] skip compressing group metadata for rhel7 compat Related: https://issues.redhat.com/browse/RHELBLD-16062 See also: https://github.com/rpm-software-management/createrepo_c/issues/403 --- src/createrepo_c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/createrepo_c.c b/src/createrepo_c.c index b77a1a3..7c339e0 100644 --- a/src/createrepo_c.c +++ b/src/createrepo_c.c @@ -847,7 +847,9 @@ main(int argc, char **argv) // Groupfile specified as argument if (cmd_options->groupfile_fullpath) { - gchar *compressed_path = cr_compress_groupfile(cmd_options->groupfile_fullpath, tmp_out_repo, compression); + // Skip compressing the group metadata for rhel7 compatibilty. See RHELBLD-16062 + cr_CompressionType group_compression = CR_CW_NO_COMPRESSION; + gchar *compressed_path = cr_compress_groupfile(cmd_options->groupfile_fullpath, tmp_out_repo, group_compression); cr_Metadatum *new_groupfile_metadatum = g_malloc0(sizeof(cr_Metadatum)); new_groupfile_metadatum->name = compressed_path; new_groupfile_metadatum->type = g_strdup("group"); -- 2.47.0