diff --git a/.createrepo_c.metadata b/.createrepo_c.metadata new file mode 100644 index 0000000..9fb25e4 --- /dev/null +++ b/.createrepo_c.metadata @@ -0,0 +1 @@ +b2333b490575cf1199d78ca1945c5808f41c6440 SOURCES/createrepo_c-0.10.0.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca685ab --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/createrepo_c-0.10.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/64.patch b/SOURCES/64.patch new file mode 100644 index 0000000..87672f6 --- /dev/null +++ b/SOURCES/64.patch @@ -0,0 +1,61 @@ +From f1a7d9b5e7ee493133daf608adaf80b10a87b915 Mon Sep 17 00:00:00 2001 +From: Patrick Uiterwijk +Date: Mon, 26 Sep 2016 12:45:25 +0000 +Subject: [PATCH 1/2] Make set_record act like a setter + +This will make sure that when set_record is called, all existing +records of the same type are removed. +It makes no sense to have multiple records of the same type, +and it actively breaks libhifs checksum validation. + +Signed-off-by: Patrick Uiterwijk +--- + src/repomd.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/src/repomd.c b/src/repomd.c +index fea2c7e..3e79ccf 100644 +--- a/src/repomd.c ++++ b/src/repomd.c +@@ -682,6 +682,14 @@ cr_repomd_set_record(cr_Repomd *repomd, + cr_RepomdRecord *record) + { + if (!repomd || !record) return; ++ ++ cr_RepomdRecord *delrec = NULL; ++ // Remove all existing record of the same type ++ while((delrec = cr_repomd_get_record(repomd, record->type)) != NULL) { ++ cr_repomd_detach_record(repomd, delrec); ++ cr_repomd_record_free(delrec); ++ } ++ + repomd->records = g_slist_append(repomd->records, record); + } + + +From 5e44d23842d68e31e92498edeb6aba2e72a63abd Mon Sep 17 00:00:00 2001 +From: Patrick Uiterwijk +Date: Mon, 26 Sep 2016 12:48:31 +0000 +Subject: [PATCH 2/2] Add test to make sure that set_record overrides the + current record + +Signed-off-by: Patrick Uiterwijk +--- + tests/python/tests/test_repomd.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tests/python/tests/test_repomd.py b/tests/python/tests/test_repomd.py +index 283dedc..6b6b3ad 100644 +--- a/tests/python/tests/test_repomd.py ++++ b/tests/python/tests/test_repomd.py +@@ -99,6 +99,10 @@ def test_repomd(self): + + self.assertEqual(len(md.records), 1) + ++ md.set_record(rec) ++ ++ self.assertEqual(len(md.records), 1) ++ + md.repoid = None + md.contenthash = None + diff --git a/SOURCES/66.patch b/SOURCES/66.patch new file mode 100644 index 0000000..f29611b --- /dev/null +++ b/SOURCES/66.patch @@ -0,0 +1,66 @@ +From 35ae4edd9a6abef11fbdbfef5e717ba6eee6f8ee Mon Sep 17 00:00:00 2001 +From: Patrick Uiterwijk +Date: Wed, 28 Sep 2016 12:09:07 +0000 +Subject: [PATCH] Close BZ2 compressed files on cr_close + +Per bzip2 documentation: "BZ2_bzReadClose does not call fclose on the underlying file +handle, so you should do that yourself if appropriate.". +This patch adds a INNERFILE element to CR_FILE to keep track of the FILE object so we +can properly close the file on cr_close. + +Signed-off-by: Patrick Uiterwijk +--- + src/compression_wrapper.c | 6 ++++++ + src/compression_wrapper.h | 1 + + 2 files changed, 7 insertions(+) + +diff --git a/src/compression_wrapper.c b/src/compression_wrapper.c +index aacaf90..adc2f39 100644 +--- a/src/compression_wrapper.c ++++ b/src/compression_wrapper.c +@@ -347,6 +347,7 @@ cr_sopen(const char *filename, + file = g_malloc0(sizeof(CR_FILE)); + file->mode = mode; + file->type = type; ++ file->INNERFILE = NULL; + + switch (type) { + +@@ -380,6 +381,7 @@ cr_sopen(const char *filename, + + case (CR_CW_BZ2_COMPRESSION): { // ------------------------------------ + FILE *f = fopen(filename, mode_str); ++ file->INNERFILE = f; + int bzerror; + + if (!f) { +@@ -405,6 +407,8 @@ cr_sopen(const char *filename, + if (bzerror != BZ_OK) { + const char *err_msg; + ++ fclose(f); ++ + switch (bzerror) { + case BZ_CONFIG_ERROR: + err_msg = "library has been mis-compiled"; +@@ -642,6 +646,8 @@ cr_close(CR_FILE *cr_file, GError **err) + BZ2_bzWriteClose(&rc, (BZFILE *) cr_file->FILE, + BZ2_SKIP_FFLUSH, NULL, NULL); + ++ fclose(cr_file->INNERFILE); ++ + if (rc == BZ_OK) { + ret = CRE_OK; + } else { +diff --git a/src/compression_wrapper.h b/src/compression_wrapper.h +index 910fd45..65022d9 100644 +--- a/src/compression_wrapper.h ++++ b/src/compression_wrapper.h +@@ -79,6 +79,7 @@ void cr_contentstat_free(cr_ContentStat *cstat, GError **err); + typedef struct { + cr_CompressionType type; /*!< Type of compression */ + void *FILE; /*!< Pointer to gzFile, BZFILE, ... */ ++ void *INNERFILE; /*!< Pointer to underlying FILE */ + cr_OpenMode mode; /*!< Mode */ + cr_ContentStat *stat; /*!< Content stats */ + cr_ChecksumCtx *checksum_ctx; /*!< Checksum contenxt */ diff --git a/SOURCES/createrepo_c-0.10.0-ignorelock-doublefree.patch b/SOURCES/createrepo_c-0.10.0-ignorelock-doublefree.patch new file mode 100644 index 0000000..ba24aa0 --- /dev/null +++ b/SOURCES/createrepo_c-0.10.0-ignorelock-doublefree.patch @@ -0,0 +1,72 @@ +From 3519f493ce51bac53d178f7ff9e5b84ca98a158a Mon Sep 17 00:00:00 2001 +From: Tomas Mlcoch +Date: Fri, 19 Aug 2016 14:59:26 +0200 +Subject: [PATCH 1/2] cr_lock_repo: Fix segfault caused by freed + tmp_repodata_dir variable + +--- + src/createrepo_shared.c | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/src/createrepo_shared.c b/src/createrepo_shared.c +index 5872029..d4df86c 100644 +--- a/src/createrepo_shared.c ++++ b/src/createrepo_shared.c +@@ -258,12 +258,11 @@ cr_lock_repo(const gchar *repo_dir, + g_debug("(--ignore-lock enabled) For data generation is used: %s", + tmp_repodata_dir); + } +- } + +- if (tmp_repodata_dir) + *tmp_repodata_dir_p = g_strdup(tmp_repodata_dir); +- else ++ } else { + *tmp_repodata_dir_p = g_strdup(lock_dir); ++ } + + return TRUE; + } +-- +2.9.3 + + +From 07f5cce3eff5c62f0c16143c7eaab64eb0e3ebf8 Mon Sep 17 00:00:00 2001 +From: Tomas Mlcoch +Date: Thu, 8 Sep 2016 09:45:38 +0200 +Subject: [PATCH 2/2] cr_lock_repo: Fix double free (RhBz: 1355720) + +--- + src/createrepo_shared.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/createrepo_shared.c b/src/createrepo_shared.c +index d4df86c..8a26787 100644 +--- a/src/createrepo_shared.c ++++ b/src/createrepo_shared.c +@@ -188,7 +188,6 @@ cr_lock_repo(const gchar *repo_dir, + assert(!err || *err == NULL); + + _cleanup_free_ gchar *lock_dir = NULL; +- _cleanup_free_ gchar *tmp_repodata_dir = NULL; + _cleanup_error_free_ GError *tmp_err = NULL; + + lock_dir = g_build_filename(repo_dir, ".repodata/", NULL); +@@ -242,10 +241,11 @@ cr_lock_repo(const gchar *repo_dir, + } + + // To data generation use a different one ++ _cleanup_free_ gchar *tmp_repodata_dir = NULL; + _cleanup_free_ gchar *tmp = NULL; +- tmp_repodata_dir = g_build_filename(repo_dir, ".repodata.", NULL); +- tmp = cr_append_pid_and_datetime(tmp_repodata_dir, "/"); +- tmp_repodata_dir = tmp; ++ ++ tmp = g_build_filename(repo_dir, ".repodata.", NULL); ++ tmp_repodata_dir = cr_append_pid_and_datetime(tmp, "/"); + + if (g_mkdir(tmp_repodata_dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)) { + g_critical("(--ignore-lock enabled) Cannot create %s: %s", +-- +2.9.3 + diff --git a/SPECS/createrepo_c.spec b/SPECS/createrepo_c.spec new file mode 100644 index 0000000..db16ae0 --- /dev/null +++ b/SPECS/createrepo_c.spec @@ -0,0 +1,517 @@ +%{!?_licensedir:%global license %%doc} + +# Bash completion (we need different approach for RHEL-6) +%if 0%{?rhel} == 6 +%global bash_completion %config%{_sysconfdir}/bash_completion.d/createrepo_c.bash +%else +%global bash_completion %{_datadir}/bash-completion/completions/* +%endif + +%{!?python2_sitearch:%global python2_sitearch %{python_sitearch}} + +%if 0%{?rhel} && 0%{?rhel} <= 7 +%bcond_with python3 +%bcond_with drpm +%else +%bcond_without python3 +%bcond_without drpm +%endif + +Summary: Creates a common metadata repository +Name: createrepo_c +Version: 0.10.0 +Release: 18%{?dist} +License: GPLv2+ +URL: https://github.com/rpm-software-management/createrepo_c +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +Patch0: createrepo_c-0.10.0-ignorelock-doublefree.patch +Patch1: https://patch-diff.githubusercontent.com/raw/rpm-software-management/createrepo_c/pull/64.patch +Patch2: https://patch-diff.githubusercontent.com/raw/rpm-software-management/createrepo_c/pull/66.patch + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: bzip2-devel +BuildRequires: doxygen +BuildRequires: expat-devel +BuildRequires: file-devel +BuildRequires: glib2-devel >= 2.22.0 +BuildRequires: libcurl-devel +BuildRequires: libxml2-devel +BuildRequires: openssl-devel +BuildRequires: rpm-devel >= 4.8.0-28 +BuildRequires: sqlite-devel +BuildRequires: xz-devel +BuildRequires: zlib-devel +Requires: %{name}-libs = %{version}-%{release} +%if 0%{?rhel} == 6 +Requires: rpm >= 4.8.0-28 +%else +BuildRequires: bash-completion +Requires: rpm >= 4.9.0 +%endif +%if %{with drpm} +BuildRequires: drpm-devel >= 0.1.3 +%endif + +%description +C implementation of Createrepo. +A set of utilities (createrepo_c, mergerepo_c, modifyrepo_c) +for generating a common metadata repository from a directory of +rpm packages and maintaining it. + +%package libs +Summary: Library for repodata manipulation + +%description libs +Libraries for applications using the createrepo_c library +for easy manipulation with a repodata. + +%package devel +Summary: Library for repodata manipulation +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +This package contains the createrepo_c C library and header files. +These development files are for easy manipulation with a repodata. + +%package -n python2-%{name} +Summary: Python bindings for the createrepo_c library +%{?python_provide:%python_provide python2-%{name}} +BuildRequires: python2-devel +BuildRequires: python2-nose +BuildRequires: python-sphinx +Requires: %{name}-libs = %{version}-%{release} + +%description -n python2-%{name} +Python bindings for the createrepo_c library. + +%if %{with python3} +%package -n python3-%{name} +Summary: Python 3 bindings for the createrepo_c library +%{?python_provide:%python_provide python3-%{name}} +BuildRequires: python3-devel +BuildRequires: python3-nose +BuildRequires: python3-sphinx +Requires: %{name}-libs = %{version}-%{release} + +%description -n python3-%{name} +Python 3 bindings for the createrepo_c library. +%endif + +%prep +%autosetup -p1 +mkdir build +%if %{with python3} +mkdir build-py3 +%endif + +%build +# Build createrepo_c with Python 2 +pushd build + %cmake ../ + make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}" +popd + +# Build createrepo_c with Pyhon 3 +%if %{with python3} +pushd build-py3 + %cmake ../ -DPYTHON_DESIRED:str=3 + make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}" +popd +%endif + +# Build C documentation +pushd build + make doc-c +popd + +%check +pushd build + # Compile C tests + make tests + + # Run Python 2 tests + make ARGS="-V" test +popd + +# Run Python 3 tests +%if %{with python3} +pushd build-py3 + make ARGS="-V" test +popd +%endif + +%install + +pushd build + # Install createrepo_c with Python 2 + make install DESTDIR=%{buildroot} +popd + +# Install createrepo_c with Python 3 +%if %{with python3} +pushd build-py3 + make install DESTDIR=%{buildroot} +popd +%endif + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc README.md +%{_mandir}/man8/createrepo_c.8* +%{_mandir}/man8/mergerepo_c.8* +%{_mandir}/man8/modifyrepo_c.8* +%{_mandir}/man8/sqliterepo_c.8* +%{bash_completion} +%{_bindir}/createrepo_c +%{_bindir}/mergerepo_c +%{_bindir}/modifyrepo_c +%{_bindir}/sqliterepo_c + +%files libs +%license COPYING +%{_libdir}/lib%{name}.so.* + +%files devel +%doc build/doc/html +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc +%{_includedir}/%{name}/ + +%files -n python2-%{name} +%{python2_sitearch}/%{name}/ + +%if %{with python3} +%files -n python3-%{name} +%{python3_sitearch}/%{name}/ +%endif + +%changelog +* Wed Feb 07 2018 Iryna Shcherbina - 0.10.0-18 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Wed Feb 07 2018 Fedora Release Engineering - 0.10.0-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 0.10.0-16 +- Switch to %%ldconfig_scriptlets + +* Fri Dec 22 2017 Patrick Uiterwijk - 0.10.0-15 +- Backport PR#64 and #66 + +* Fri Aug 11 2017 Igor Gnatenko - 0.10.0-14 +- Rebuilt after RPM update (№ 3) + +* Thu Aug 10 2017 Igor Gnatenko - 0.10.0-13 +- Rebuilt for RPM soname bump + +* Thu Aug 10 2017 Igor Gnatenko - 0.10.0-12 +- Rebuilt for RPM soname bump + +* Wed Aug 02 2017 Fedora Release Engineering - 0.10.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.10.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Feb 13 2017 Pavel Raiskup - 0.10.0-9 +- backport patches for double-free in --ignore-lock (rhbz#1355720) + +* Fri Feb 10 2017 Fedora Release Engineering - 0.10.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 13 2016 Stratakis Charalampos - 0.10.0-7 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.10.0-6 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue Apr 12 2016 Igor Gnatenko - 0.10.0-5 +- Make drpm builds conditional + +* Sun Apr 10 2016 Igor Gnatenko - 0.10.0-4 +- Don't own python3_sitearch dir in python3 subpkg +- Use %%license macro +- Follow modern packaging guidelines +- Cleanups in spec file +- Follow packaging guidelines about SourceURL +- Fix license + +* Wed Feb 03 2016 Fedora Release Engineering - 0.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jan 8 2016 Orion Poplawski - 0.10.0-2 +- Remove comments causing trouble with post/postun scriptlets + +* Tue Jan 5 2016 Tomas Mlcoch - 0.10.0-1 +- Python 3 support (made by Ralph Bean) +- Modify gen_rst.py to indicate --sqliterepo is an option too (Neal Gompa) +- Do not compress manpages at generation time (Neal Gompa) + +* Tue Oct 20 2015 Tomas Mlcoch - 0.9.1-1 +- Fix double free during parsing broken XML metadata (Issue #33) +- Tests: Add acceptance test for --general-compress-type option +- Fix 'CR_CW_UNKNOWN_COMPRESSION cannot be used' error +- Refactoring: Fix compiler warnings +- Add --general-compress-type option (RhBug 1253850) +- Enable drpm support when drpm library is detected on system (RhBug: 1261031) (Issue #37) +- fix traceback on non-complete datetime information (Jarek Polok) +- parsehdr: Skip broken dependency with bad (non-numerical) epoch and print warning about that + (https://lists.fedoraproject.org/pipermail/devel/2015-August/213882.html) +- misc: cr_str_to_evr(): Return NULL instead of "0" for bad (non-numerical) epoch +- updateinfo: Fix a typo in the package release attribute (Luke Macken) +- CMake: Don't require CXX compiler +- Tests for different checksum type for RPMs and repodata files (#31) +- Support different checksum type for RPMs and repodata files (#31) + +* Tue Jul 7 2015 Tomas Mlcoch - 0.9.0-2 +- Add drpm as a BuildRequire + +* Thu May 28 2015 Tomas Mlcoch - 0.9.0-1 +- mergerepo_c: Prepend protocol (file://) for URLs in pkgorigins (if --koji is used) +- Update bash completion +- doc: Update manpages +- mergerepo: Fix NVR merging method +- mergerepo: Fix behavior of --all param +- createrepo: Add --cut-dirs and --location-prefix options +- misc: Add cr_cut_dirs() +- mergerepo: Use better version comparison algorithm +- utils: Port cr_cmp_version_str() to rpm's algorithm (rpmvercmp) +- misc: Rename elements in cr_Version structure +- mergerepo: Fix version-release comparison for packages when --all is used +- mergerepo: Show warnings if some groupfile cannot be automatically used +- mergerepo: Exit with error code when a groupfile cannot be copied + +* Fri May 15 2015 Tomas Mlcoch - 0.8.3-1 +- mergerepo: Do not prepend file:// if protocol is already specified + +* Thu May 14 2015 Tomas Mlcoch - 0.8.2-1 +- doc: Add man pages for sqliterepo and update manpages for other tools +- mergerepo: Work only with noarch packages if --koji is used and + no archlist is specified +- mergerepo: Use file:// protocol in local baseurl +- mergerepo: Do not include baseurl for first repo if --koji is specified (RhBug: 1220082) +- mergerepo_c: Support multilib arch for --koji repos +- mergerepo_c: Refactoring +- Print debug message with version in each tool when --verbose is used +- modifyrepo: Don't override file with itself (RhBug: 1215229) + +* Wed May 6 2015 Tomas Mlcoch - 0.8.1-1 +- Fix bash completion for RHEL 6 + +* Tue May 5 2015 Tomas Mlcoch - 0.8.0-1 +- New tool Sqliterepo_c - It generates sqlite databases into repos + where the sqlite is missing. +- Internal refactoring and code cleanup + +* Fri Feb 20 2015 Tomas Mlcoch - 0.7.7-1 +- Proper directory for temporary files when --local-sqlite is used (Issue #12) +- Bring bash completion install dir and filenames up to date with current bash-completion + +* Thu Jan 8 2015 Tomas Mlcoch - 0.7.6-1 +- Python: Add __contains__ method to Repomd() class + +* Sun Dec 28 2014 Tomas Mlcoch - 0.7.5-1 +- Python repomd: Support for iteration and indexing by type - e.g. record = repomd['primary'] +- Show warning if an XML parser probably parsed a bad type of medata (New XML parser warning type CR_XML_WARNING_BADMDTYPE) +- drpm library: Explicitly try to locate libdrpm.so.0 +- deltarpms: Don't show options for delta rpms if support is not available + +* Tue Nov 11 2014 Tomas Mlcoch - 0.7.4-1 +- createrepo_c, mergerepo_c: Follow redirs by default while downloading remote repos +- mergerepo_c: Fix segfault when a package without sourcerpm is part of metadata and --koji option is used + +* Mon Nov 10 2014 Tomas Mlcoch - 0.7.3-1 +- xml_parser: Add file path into error messages +- Refactor: Replace g_error() with g_critical() (RhBug: 1162102) + +* Thu Nov 06 2014 Tomas Mlcoch - 0.7.2-1 +- createrepo_c: New option --local-sqlite + +* Fri Oct 31 2014 Tomas Mlcoch - 0.7.1-1 +- Mergerepo: Fix mergerepo +- Mergerepo: Add some debugging of metadata read. + +* Mon Oct 20 2014 Tomas Mlcoch - 0.7.0-1 +- deltarpms: Update module to work with current version of drpm +- mergerepo_c: Add --omit-baseurl option +- craterepo_c: Gen empty repo if empty pkglist is used +- Docs: Output python docs to separate directory +- Several small fixes + +* Tue Aug 12 2014 Tomas Mlcoch - 0.6.1-1 +- updateinfo: Use Python datetime objects in python bindings + +* Tue Aug 5 2014 Tomas Mlcoch - 0.6.0-1 +- Support for updateinfo.xml manipulation (including Python bindings) + +* Fri Jul 18 2014 Tomas Mlcoch - 0.5.0-1 +- Experimental delta rpm (DRPM) support (Disabled in Fedora build). + +* Thu Jun 26 2014 Tomas Mlcoch - 0.4.1-1 +- Initialize threads correctly on old versions of GLib2 (RhBug: 1108787) +- Do not print log domain (get rid off C_CREATEREPOLIB prefix in log messages) +- Implements support for --cachedir +- New option --retain-old-md-by-age +- Few small API changes + +* Tue May 6 2014 Tomas Mlcoch - 0.4.0-1 +- Change default behavior of repodata files handling. (RhBug: 1094539) + See: https://github.com/Tojaj/createrepo_c/wiki/New-File-Handling + By default, createrepo leaves old groupfiles (comps files) + in the repodata/ directory during update. + Createrepo_c did the same thing but the version 0.4.0 changes this behaviour. + +* Thu Apr 10 2014 Tomas Mlcoch - 0.3.1-2 +- Support for weak and rich dependecies + +* Mon Mar 10 2014 Tomas Mlcoch - 0.3.0-1 +- Relevant only for developers using createrepo_c library: New approach for + metadata loading in case of internal high-level parser functions (see commit + messages for more information: d6ed327595, 0b0e75203e, ad1e8450f5) +- Support for changelog limit value == -1 (include all changelogs) +- Update debug compilation flags +- Update man pages (Add synompsis with usage) +- Update usage examples in help + +* Thu Feb 20 2014 Tomas Mlcoch - 0.2.2-1 +- Temporary remove deltarepo subpackages +- cmake: Do not install deltarepo stuff yet +- helper: Removed cr_remove_metadata() and cr_get_list_of_md_locations() +- Add module helpers +- Sanitize strings before writting them to XML or sqlitedb (ISSUE #3) + +* Mon Jan 27 2014 Tomas Mlcoch - 0.2.1-3 +- New expert option: --ignore-lock + +* Mon Jan 20 2014 Tomas Mlcoch - 0.2.1-2 +- More effort to avoid residual .repodata/ directory on error +- Add deltarepo and python-deltarepo subpackages +- Add modifyrepo_c +- Add documentation for python bindings +- Refactored code & a lot of little bug fixes + +* Wed Aug 14 2013 Tomas Mlcoch - 0.2.1-1 +- checksum: Set SHA to be the same as SHA1 (For compatibility with original + Createrepo) + +* Mon Aug 5 2013 Tomas Mlcoch - 0.2.0-1 +- Speedup (More parallelization) +- Changed C API +- Add python bindings +- A lot of bugfixes +- Add new make targets: tests (make tests - builds c tests) and test + (make test - runs c and python test suits). +- Changed interface of most of C modules - Better error reporting + (Add GError ** param). +- Experimental Python bindings (Beware: The interface is not final yet!). +- package: Add cr_package_copy method. +- sqlite: Do not recreate tables and triggers while opening existing db. +- mergerepo_c: Implicitly use --all with --koji. +- Man page update. + +* Thu Apr 11 2013 Tomas Mlcoch - 0.1.17-3 +- mergerepo_c: Add --simple-md-filenames and --unique-md-filenames +options. (RhBug: 950994) +- mergerepo_c: Always include noarch while mimic koji +mergerepos. (RhBug: 950991) +- Rename cr_package_parser_shutdown to cr_package_parser_cleanup() +- cr_db_info_update is now safe from sqlinjection. + +* Mon Mar 25 2013 Tomas Mlcoch - 0.1.17-1 +- Fix double free() when old metadata parsing failed. (related to RhBug: 920795) +- Convert all strings to UTF-8 while dumping XML. (related RhBug: 920795) + +* Mon Mar 11 2013 Tomas Mlcoch - 0.1.16-2 +- Remove creation of own empty rpm keyring for a transaction set. +This is not necessary since rpm-4.8.0-28 (rpm commit +cad147070e5513312d851f44998012e8f0cdf1e3). Moreover, own rpm keyring +causes a race condition in threads (causing double free()) which use +rpmReadPackageFile() called from cr_package_from_rpm(). + +* Thu Mar 07 2013 Tomas Mlcoch - 0.1.16-1 +- Fix usage of rpm keyring (RhBug:918645) +- More generic interface of repomd module +- Code refactoring +- Add some usage examples into the doxygen documentation and .h files +- Rename version constants in version.h +- New function cr_package_nevra (returns package nevra string) + +* Mon Feb 11 2013 Tomas Mlcoch - 0.1.15-1 +- Fix bug in final move from .repodata/ -> repodata/ +- Fix warnings from RPM library. RPM library is thread-unsafe. This +includes also reading headers. Use of empty keyring for rpm transaction +should work around the problem. + +* Tue Nov 27 2012 Tomas Mlcoch - 0.1.14-1 +- Fix filelists database generation (use '.' instead of '' for current dir) + +* Tue Nov 20 2012 Tomas Mlcoch - 0.1.13-1 +- Fix race-condition during task buffering in createrepo_c + +* Tue Nov 20 2012 Tomas Mlcoch - 0.1.12-2 +- Fix removing old repomd.xml while --update + +* Thu Nov 15 2012 Tomas Mlcoch - 0.1.12-1 +- Fix bug in sqlite filelists database +- Fix memory leak + +* Fri Nov 09 2012 Tomas Mlcoch - 0.1.11-1 +- Deterministic output! Packages in output repodata are now sorted +by ASCII value +- Support for Koji mergerepos behaviour in mergerepo_c +(new --koji, --groupfile and --blocked params) +- Better atomicity while finall move .repodata/ -> repodata/ +- Repomd module supports pkgorigins record +- Some new functions in misc module +- Small changes in library interface + +* Wed Oct 03 2012 Tomas Mlcoch - 0.1.10-1 +- Another memory usage optimalization + +* Mon Sep 03 2012 Tomas Mlcoch - 0.1.9-1 +- Some changes in library interface +- Memory usage optimalization +- Fix a segfault and a race condition +- New cmd options: --read-pkgs-list and --retain-old-md param +- Few other bugfixes + +* Wed Aug 15 2012 Tomas Mlcoch - 0.1.8-1 +- New interface of repomd module +- New cmd options: --repo --revision --distro --content --basedir +- New createrepo_c specific cmd option --keep-all-metadata +- Few bugfixes + +* Thu Jul 26 2012 Tomas Mlcoch - 0.1.7-1 +- SQLite support +- Bash completion +- createrepo_c support for --compress-type param +- Improved logging +- Subpackages -devel and -libsi +- Relicensed to GPLv2 +- Doxygen documentation in devel package +- README update + +* Mon Jun 11 2012 Tomas Mlcoch - 0.1.5-1 +- Support for .xz compression +- Unversioned .so excluded from installation + +* Mon Jun 4 2012 Tomas Mlcoch - 0.1.4-1 +- New mergerepo params: --all, --noarch-repo and --method +- Fix segfault when more than one --excludes param used + +* Mon May 28 2012 Tomas Mlcoch - 0.1.3-1 +- Set RelWithDebInfo as default cmake build type + +* Wed May 23 2012 Tomas Mlcoch - 0.1.2-1 +- Add version.h header file + +* Wed May 23 2012 Tomas Mlcoch - 0.1.1-1 +- Add license + +* Wed May 9 2012 Tomas Mlcoch - 0.1.0-1 +- First public release