import createrepo_c-0.20.1-1.el9

This commit is contained in:
CentOS Sources 2023-05-09 05:17:56 +00:00 committed by Stepan Oksanichenko
parent 13fd13ba60
commit df4e52904b
5 changed files with 28 additions and 2744 deletions

View File

@ -1 +1 @@
5f3e45a79255654c7315c8667197fd562fd2ff5c SOURCES/createrepo_c-0.17.7.tar.gz
3e76ff79089aebf9a503bdb82d59dc148c218d0f SOURCES/createrepo_c-0.20.1.tar.gz

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/createrepo_c-0.17.7.tar.gz
SOURCES/createrepo_c-0.20.1.tar.gz

View File

@ -1,94 +0,0 @@
From b5f425fec738c1de344f4f917d3614e9efb98e2b Mon Sep 17 00:00:00 2001
From: Aleš Matěj <amatej@redhat.com>
Date: Thu, 23 Sep 2021 08:30:47 +0200
Subject: [PATCH] Default --keep-all-metadata to TRUE and add --discard-additional-metadata
= changelog =
msg: Switch default of --keep-all-metadata to TRUE and add --discard-additional-metadata
type: enhancement
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1992209
---
doc/createrepo_c.8 | 7 +++++--
src/cmd_parser.c | 15 ++++++++++++---
src/cmd_parser.h | 1 +
3 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/doc/createrepo_c.8 b/doc/createrepo_c.8
index c9017c5..1a3e101 100644
--- a/doc/createrepo_c.8
+++ b/doc/createrepo_c.8
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
-.TH CREATEREPO_C 8 "2020-07-02" "" ""
+.TH CREATEREPO_C 8 "2021-09-23" "" ""
.SH NAME
createrepo_c \- Create rpm-md format (xml-rpm-metadata) repository
.
@@ -173,7 +173,10 @@ Generate zchunk files as well as the standard repodata.
Directory containing compression dictionaries for use by zchunk
.SS \-\-keep\-all\-metadata
.sp
-Keep all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update.
+Keep all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update (default).
+.SS \-\-discard\-additional\-metadata
+.sp
+Discard all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update.
.SS \-\-compatibility
.sp
Enforce maximal compatibility with classical createrepo (Affects only: \-\-retain\-old\-md).
diff --git a/src/cmd_parser.c b/src/cmd_parser.c
index bbefa08..639d7e9 100644
--- a/src/cmd_parser.c
+++ b/src/cmd_parser.c
@@ -65,6 +65,8 @@ struct CmdOptions _cmd_options = {
.zck_compression = FALSE,
.zck_dict_dir = NULL,
.recycle_pkglist = FALSE,
+
+ .keep_all_metadata = TRUE,
};
@@ -168,6 +170,9 @@ static GOptionEntry cmd_entries[] =
#endif
{ "keep-all-metadata", 0, 0, G_OPTION_ARG_NONE, &(_cmd_options.keep_all_metadata),
"Keep all additional metadata (not primary, filelists and other xml or sqlite files, "
+ "nor their compressed variants) from source repository during update (default).", NULL },
+ { "discard-additional-metadata", 0, 0, G_OPTION_ARG_NONE, &(_cmd_options.discard_additional_metadata),
+ "Discard all additional metadata (not primary, filelists and other xml or sqlite files, "
"nor their compressed variants) from source repository during update.", NULL },
{ "compatibility", 0, 0, G_OPTION_ARG_NONE, &(_cmd_options.compatibility),
"Enforce maximal compatibility with classical createrepo (Affects only: --retain-old-md).", NULL },
@@ -510,9 +515,13 @@ check_arguments(struct CmdOptions *options,
x++;
}
- // Check keep-all-metadata
- if (options->keep_all_metadata && !options->update) {
- g_warning("--keep-all-metadata has no effect (--update is not used)");
+ if (options->discard_additional_metadata) {
+ options->keep_all_metadata = FALSE;
+ }
+
+ // Check discard-additional-metadata
+ if (options->discard_additional_metadata && !options->update) {
+ g_warning("--discard-additional-metadata has no effect (--update is not used)");
}
// Process --distro tags
diff --git a/src/cmd_parser.h b/src/cmd_parser.h
index 32bcf99..03cfcf0 100644
--- a/src/cmd_parser.h
+++ b/src/cmd_parser.h
@@ -77,6 +77,7 @@ struct CmdOptions {
char *zck_dict_dir; /*!< directory with zchunk dictionaries */
gboolean keep_all_metadata; /*!< keep groupfile and updateinfo from source
repo during update */
+ gboolean discard_additional_metadata; /*!< Inverse option to keep_all_metadata */
gboolean ignore_lock; /*!< Ignore existing .repodata/ - remove it,
create the new one (empty) to serve as
a lock and use a .repodata.date.pid for
--
libgit2 1.1.0

View File

@ -24,13 +24,11 @@
Summary: Creates a common metadata repository
Name: createrepo_c
Version: 0.17.7
Release: 4%{?dist}
Version: 0.20.1
Release: 1%{?dist}
License: GPLv2+
URL: https://github.com/rpm-software-management/createrepo_c
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch1: 0001-Default---keep-all-metadata-to-TRUE-and-add---discard-additional-metadata.patch
Patch2: 0002-Revert-added-API-for-parsing-main-metadata-together-RhBug2062299.patch
BuildRequires: cmake
BuildRequires: gcc
@ -177,11 +175,31 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
%changelog
* Tue Mar 15 2022 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.7-4
- Reference correct bug (RhBug:2062301)
* Thu Sep 22 2022 Lukas Hrazky <lhrazky@redhat.com> - 0.20.1-1
- Update to 0.20.1
- createrepo_c shouldn't silently produce duplicate-NEVRA repos
- Fix bad performance with task queue management
- Update errno usage to fix incorrect GError messages
- Install header for createrepo_shared module
- Remove C API for cr_xml_parse_main_metadata_together
- Remove python bindings for xml_parse_main_metadata_together
- Fix '&' encoding in attributes when parsing repodata
- Add a streaming parsing API that is user-controllable.
- Fix a memory leak of primary pkg when parsing interrupted
- Fix a memory leak when removing the first link in a list
- Remove `allow_out_of_order` option for `xml_parse_main_metadata_together`
- Make parse warnings visible through cr.Repomd(), cr.UpdateInfo()
- Use --error-exit-val option by default
- If new and old repomd matches during --update don't update
- Add `cr_repomd_compare` for comparing two repomds
- Store parsed repomd in `cr_MetadataLocation`
- Set database version only for the database records, not everything
- Use copy+delete fallback when moving of a dir fails
- Fix memory leaks
- [spec] Option for legacy hashes, enable on RHEL <= 8 (RhBug:2022271)
* Fri Mar 11 2022 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.7-3
- Revert addition of new API for parsing main metadata together (RhBug:2062299)
* Mon Jun 6 2022 Lukas Hrazky <lhrazky@redhat.com> - 0.17.7-4
- Revert addition of new API for parsing main metadata together (RhBug:2063141)
* Wed Feb 16 2022 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.7-2
- Switch default of --keep-all-metadata to TRUE and add --discard-additional-metadata (RhBug:2055032)