From 75067e77ac1fbdf0a17da3b8a4df3dd0cf76bcaa Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Tue, 19 Sep 2023 16:35:50 -0400 Subject: [PATCH] Add support for zstd metadata closes #3254 --- CHANGES/3254.misc | 1 + pulp_rpm/app/tasks/publishing.py | 6 +++--- requirements.txt | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 CHANGES/3254.misc diff --git a/CHANGES/3254.misc b/CHANGES/3254.misc new file mode 100644 index 0000000000..2e1eb8ead2 --- /dev/null +++ b/CHANGES/3254.misc @@ -0,0 +1 @@ +Add support for reading zstd metadata. diff --git a/pulp_rpm/app/tasks/publishing.py b/pulp_rpm/app/tasks/publishing.py index 34c1c00d2c..30d04dadc3 100644 --- a/pulp_rpm/app/tasks/publishing.py +++ b/pulp_rpm/app/tasks/publishing.py @@ -455,9 +455,9 @@ def generate_repo_metadata( mod_yml_path = os.path.join(cwd, "modules.yaml") comps_xml_path = os.path.join(cwd, "comps.xml") - pri_xml = cr.PrimaryXmlFile(pri_xml_path) - fil_xml = cr.FilelistsXmlFile(fil_xml_path) - oth_xml = cr.OtherXmlFile(oth_xml_path) + pri_xml = cr.PrimaryXmlFile(pri_xml_path, compressiontype=cr.GZ) + fil_xml = cr.FilelistsXmlFile(fil_xml_path, compressiontype=cr.GZ) + oth_xml = cr.OtherXmlFile(oth_xml_path, compressiontype=cr.GZ) upd_xml = None if publication.sqlite_metadata: diff --git a/requirements.txt b/requirements.txt index 04679490b3..0daeeadfc3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -createrepo_c~=0.20.1 +createrepo_c~=1.0.0 django_readonly_field~=1.1.1 jsonschema>=4.6,<5.0 libcomps>=0.1.15.post1,<0.2