services/createrepo_c.git
9 years agorefactoring: Replace 'fprintf(stderr, ...' with 'g_printerr(...'
Tomas Mlcoch [Mon, 10 Nov 2014 15:13:42 +0000 (16:13 +0100)]
refactoring: Replace 'fprintf(stderr, ...' with 'g_printerr(...'

9 years agoxml_parser: Add file path into the error message
Tomas Mlcoch [Mon, 10 Nov 2014 15:08:11 +0000 (16:08 +0100)]
xml_parser: Add file path into the error message

9 years agoRefactor: Replace g_error() with g_critical() (RhBug: 1162102)
Tomas Mlcoch [Mon, 10 Nov 2014 14:58:50 +0000 (15:58 +0100)]
Refactor: Replace g_error() with g_critical() (RhBug: 1162102)

9 years agoBump version to 1.7.2
Tomas Mlcoch [Thu, 6 Nov 2014 13:34:59 +0000 (14:34 +0100)]
Bump version to 1.7.2

9 years agocreaterepo_c: New option --local-sqlite
Tomas Mlcoch [Thu, 6 Nov 2014 13:34:40 +0000 (14:34 +0100)]
createrepo_c: New option --local-sqlite

9 years agoBump to 0.7.1
Tomas Mlcoch [Fri, 31 Oct 2014 12:15:11 +0000 (13:15 +0100)]
Bump to 0.7.1

9 years agoMerge pull request #10 from tomprince/fix-merge-repo
Tomas Mlcoch [Fri, 31 Oct 2014 11:59:06 +0000 (12:59 +0100)]
Merge pull request #10 from tomprince/fix-merge-repo

Fix mergerepo.

9 years agodeltarpms: Use cr_queue_free_full() instead of g_queue_free_full()
Tomas Mlcoch [Fri, 31 Oct 2014 11:54:46 +0000 (12:54 +0100)]
deltarpms: Use cr_queue_free_full() instead of g_queue_free_full()

9 years agomisc: Add cr_queue_free_full()
Tomas Mlcoch [Fri, 31 Oct 2014 11:54:27 +0000 (12:54 +0100)]
misc: Add cr_queue_free_full()

9 years agoAdd some debugging of metadata read.
Tom Prince [Fri, 24 Oct 2014 23:48:18 +0000 (17:48 -0600)]
Add some debugging of metadata read.

9 years agoFix side-effectful assertion.
Tom Prince [Fri, 24 Oct 2014 23:42:39 +0000 (17:42 -0600)]
Fix side-effectful assertion.

9 years agoBump to 0.7.0
Tomas Mlcoch [Mon, 20 Oct 2014 06:38:23 +0000 (08:38 +0200)]
Bump to 0.7.0

9 years agotests: Add example comps file
Tomas Mlcoch [Fri, 17 Oct 2014 12:58:23 +0000 (14:58 +0200)]
tests: Add example comps file

9 years agodeltarpms: Fix few memory leaks
Tomas Mlcoch [Fri, 17 Oct 2014 10:40:29 +0000 (12:40 +0200)]
deltarpms: Fix few memory leaks

9 years agocmd_parser: Fix invalid free()
Tomas Mlcoch [Fri, 17 Oct 2014 09:55:53 +0000 (11:55 +0200)]
cmd_parser: Fix invalid free()

9 years agodeltarpms: Update module to work with current version of drpm
Tomas Mlcoch [Fri, 17 Oct 2014 09:55:30 +0000 (11:55 +0200)]
deltarpms: Update module to work with current version of drpm

9 years agomergerepo_c: Add --omit-baseurl option
Tomas Mlcoch [Thu, 9 Oct 2014 15:44:02 +0000 (17:44 +0200)]
mergerepo_c: Add --omit-baseurl option

This options force the mergerepo_c to skipp adition of baseurl of
the processed repositories.
Packages which already have baseurls specified would keep that URLs
(no baseurls would be removed)

9 years agocraterepo_c: Gen empty repo if empty pkglist is used
Tomas Mlcoch [Thu, 9 Oct 2014 13:14:21 +0000 (15:14 +0200)]
craterepo_c: Gen empty repo if empty pkglist is used

9 years agocreaterepo_c: More bulletproof source of location for loaded repo during update for...
Tomas Mlcoch [Thu, 9 Oct 2014 12:52:07 +0000 (14:52 +0200)]
createrepo_c: More bulletproof source of location for loaded repo during update for use in a debug message

9 years agoMerge pull request #5 from cottsay/master
Tomas Mlcoch [Tue, 30 Sep 2014 09:44:19 +0000 (11:44 +0200)]
Merge pull request #5 from cottsay/master

Docs: Output python docs to separate directory

9 years agoDocs: Output python docs to separate directory
Scott K Logan [Sun, 28 Sep 2014 20:44:40 +0000 (15:44 -0500)]
Docs: Output python docs to separate directory

It makes it hard to package these docs when the CMake files are in the same
directory as the output. This patch moves the sphinx-build output to the
subdirectory "html".

9 years agoBump to 0.6.1
Tomas Mlcoch [Tue, 12 Aug 2014 08:08:20 +0000 (10:08 +0200)]
Bump to 0.6.1

9 years agoPython: Fix memory leak in get_datetime()
Tomas Mlcoch [Tue, 12 Aug 2014 08:03:34 +0000 (10:03 +0200)]
Python: Fix memory leak in get_datetime()

9 years agoPython: Call PyDateTime_IMPORT before each call of function related to PyDateTime...
Tomas Mlcoch [Tue, 12 Aug 2014 08:01:53 +0000 (10:01 +0200)]
Python: Call PyDateTime_IMPORT before each call of function related to PyDateTime (to prevent SIGSEV)

9 years agoPython: Fix imports of datetime.h and call PyDateTime_IMPORT during module init.
Tomas Mlcoch [Tue, 12 Aug 2014 07:24:11 +0000 (09:24 +0200)]
Python: Fix imports of datetime.h and call PyDateTime_IMPORT during module init.

9 years agoMerge pull request #4 from bochecha/date_attrs
Tomas Mlcoch [Tue, 12 Aug 2014 07:16:21 +0000 (09:16 +0200)]
Merge pull request #4 from bochecha/date_attrs

updateinfo: *_date attributes as Python datetime objects

9 years agoupdateinfo: Make the *_date fields actual Python datetime objects
Mathieu Bridon [Thu, 7 Aug 2014 16:51:24 +0000 (18:51 +0200)]
updateinfo: Make the *_date fields actual Python datetime objects

One caveat is that their microseconds are always 0, simply because they
don't appear in the XML serialization.

9 years agotests: Use actual dates for the tests
Mathieu Bridon [Thu, 7 Aug 2014 17:24:35 +0000 (19:24 +0200)]
tests: Use actual dates for the tests

9 years agoUpdateinfo parser: Add new states STATE_(MESSAGE|RESTARTSUGGESTED|RELOGINSUGGESTED...
Tomas Mlcoch [Thu, 7 Aug 2014 14:07:20 +0000 (16:07 +0200)]
Updateinfo parser: Add new states STATE_(MESSAGE|RESTARTSUGGESTED|RELOGINSUGGESTED) - not implemented yet

9 years agoBump version to 0.6.0
Tomas Mlcoch [Tue, 5 Aug 2014 08:45:03 +0000 (10:45 +0200)]
Bump version to 0.6.0

9 years agoRemove two unused variables
Tomas Mlcoch [Tue, 5 Aug 2014 08:44:39 +0000 (10:44 +0200)]
Remove two unused variables

9 years agoExamples: Add three examples for updateinfo.xml
Tomas Mlcoch [Tue, 5 Aug 2014 08:25:44 +0000 (10:25 +0200)]
Examples: Add three examples for updateinfo.xml

9 years agoxml_dump_updateinfo: Fix cr_xml_dump_updaterecord() (remove <delta> element)
Tomas Mlcoch [Tue, 5 Aug 2014 08:25:18 +0000 (10:25 +0200)]
xml_dump_updateinfo: Fix cr_xml_dump_updaterecord() (remove <delta> element)

9 years agoPython: Add UpdateInfoXmlFile class
Tomas Mlcoch [Tue, 5 Aug 2014 08:11:51 +0000 (10:11 +0200)]
Python: Add UpdateInfoXmlFile class

9 years agoupdateinfo: Fix logic of inserting <reboot_suggested> element
Tomas Mlcoch [Tue, 5 Aug 2014 08:11:24 +0000 (10:11 +0200)]
updateinfo: Fix logic of inserting <reboot_suggested> element

9 years agoPython: Add function xml_dump_updaterecord()
Tomas Mlcoch [Mon, 4 Aug 2014 16:01:30 +0000 (18:01 +0200)]
Python: Add function xml_dump_updaterecord()

9 years agoTests: Tests for python updateinfo bindings
Tomas Mlcoch [Mon, 4 Aug 2014 15:11:00 +0000 (17:11 +0200)]
Tests: Tests for python updateinfo bindings

9 years agoPython: Bindings for updateinfo manipulation
Tomas Mlcoch [Mon, 4 Aug 2014 15:10:40 +0000 (17:10 +0200)]
Python: Bindings for updateinfo manipulation

9 years agoxml_dump_updateinfo: Dump also filename element
Tomas Mlcoch [Mon, 4 Aug 2014 15:07:56 +0000 (17:07 +0200)]
xml_dump_updateinfo: Dump also filename element

9 years agoupdateinfo: Add copy functions
Tomas Mlcoch [Mon, 4 Aug 2014 08:14:34 +0000 (10:14 +0200)]
updateinfo: Add copy functions

9 years agoxml_file: Add support for updateinfo (CR_XMLFILE_UPDATEINFO)
Tomas Mlcoch [Fri, 1 Aug 2014 12:05:15 +0000 (14:05 +0200)]
xml_file: Add support for updateinfo (CR_XMLFILE_UPDATEINFO)

9 years agoupdateinfo: Export the cr_xml_dump_updateinforecord()
Tomas Mlcoch [Fri, 1 Aug 2014 11:55:39 +0000 (13:55 +0200)]
updateinfo: Export the cr_xml_dump_updateinforecord()

9 years agotests: Add updateinfo parser C tests
Tomas Mlcoch [Fri, 1 Aug 2014 11:49:14 +0000 (13:49 +0200)]
tests: Add updateinfo parser C tests

9 years agoCMake: Support for new updateinfo modules
Tomas Mlcoch [Fri, 1 Aug 2014 11:48:53 +0000 (13:48 +0200)]
CMake: Support for new updateinfo modules

9 years agoxml_parser: Add updateinfo parser
Tomas Mlcoch [Fri, 1 Aug 2014 11:48:21 +0000 (13:48 +0200)]
xml_parser: Add updateinfo parser

9 years agoxml_dump: Add updateinfo dumper
Tomas Mlcoch [Fri, 1 Aug 2014 11:47:43 +0000 (13:47 +0200)]
xml_dump: Add updateinfo dumper

9 years agoxml_dump_internal: Add cr_xmlNewTextChild_c() and cr_xmlNewProp_c() functions
Tomas Mlcoch [Fri, 1 Aug 2014 11:47:12 +0000 (13:47 +0200)]
xml_dump_internal: Add cr_xmlNewTextChild_c() and cr_xmlNewProp_c() functions

9 years agoupdateinfo: Use GStringChunks
Tomas Mlcoch [Fri, 1 Aug 2014 11:45:26 +0000 (13:45 +0200)]
updateinfo: Use GStringChunks

10 years agoerror: Add error code and quark for updateinfo xml parser
Tomas Mlcoch [Wed, 30 Jul 2014 13:31:10 +0000 (15:31 +0200)]
error: Add error code and quark for updateinfo xml parser

10 years agoupdateinfo: Add updateinfo module with datatype definitions
Tomas Mlcoch [Wed, 30 Jul 2014 12:39:06 +0000 (14:39 +0200)]
updateinfo: Add updateinfo module with datatype definitions

10 years agoAdd missing <glib.h> includes
Tomas Mlcoch [Wed, 30 Jul 2014 12:38:03 +0000 (14:38 +0200)]
Add missing <glib.h> includes

10 years agoUpdated acceptance test (I've released the utility for metadata diff. See: https...
Tomas Mlcoch [Wed, 23 Jul 2014 13:39:00 +0000 (15:39 +0200)]
Updated acceptance test (I've released the utility for metadata diff. See: https://github.com/Tojaj/yum-metadata-diff)

10 years agoBump to 0.5.0
Tomas Mlcoch [Fri, 18 Jul 2014 11:23:15 +0000 (13:23 +0200)]
Bump to 0.5.0

10 years agoDeltarpm support (Experimental - the used drpm library is not stable!)
Tomas Mlcoch [Fri, 18 Jul 2014 09:17:01 +0000 (11:17 +0200)]
Deltarpm support (Experimental - the used drpm library is not stable!)

Git of the DRPM library: https://git.fedorahosted.org/git/drpm.git

Check the README.md for information how to build createrepo_c with delta rpm support

Note: Delta rpm support is disabled by default

10 years agobash completion: Add support for delta related args
Tomas Mlcoch [Fri, 18 Jul 2014 08:13:33 +0000 (10:13 +0200)]
bash completion: Add support for delta related args

10 years agoparsehdr: Remove unused include
Tomas Mlcoch [Wed, 16 Jul 2014 14:59:23 +0000 (16:59 +0200)]
parsehdr: Remove unused include

10 years agoerror: Add support for deltarpm failures
Tomas Mlcoch [Wed, 16 Jul 2014 14:57:00 +0000 (16:57 +0200)]
error: Add support for deltarpm failures

10 years agoxml_file: Support for prestodelta.xml format
Tomas Mlcoch [Wed, 16 Jul 2014 14:56:21 +0000 (16:56 +0200)]
xml_file: Support for prestodelta.xml format

10 years agomisc: Make the function for NEVR and NEVRA parsing more generic
Tomas Mlcoch [Wed, 16 Jul 2014 14:55:32 +0000 (16:55 +0200)]
misc: Make the function for NEVR and NEVRA parsing more generic

10 years agoAdapt code to the new types
Tomas Mlcoch [Wed, 16 Jul 2014 12:44:39 +0000 (14:44 +0200)]
Adapt code to the new types

10 years agomisc: Replace usage of the cr_NVREA with the cr_NEVRA instead
Tomas Mlcoch [Wed, 16 Jul 2014 12:44:01 +0000 (14:44 +0200)]
misc: Replace usage of the cr_NVREA with the cr_NEVRA instead

10 years agomisc: Replace struct cr_NVREA * with cr_NVREA *
Tomas Mlcoch [Wed, 16 Jul 2014 12:27:24 +0000 (14:27 +0200)]
misc: Replace struct cr_NVREA * with cr_NVREA *

10 years agomisc: The struct cr_EVR type replaced by the cr_EVR *
Tomas Mlcoch [Wed, 16 Jul 2014 12:15:52 +0000 (14:15 +0200)]
misc: The struct cr_EVR type replaced by the cr_EVR *

10 years agomisc: Add cr_str_to_nevr() and cr_str_to_nevra() and types cr_NEVR and cr_NEVRA
Tomas Mlcoch [Tue, 8 Jul 2014 11:36:13 +0000 (13:36 +0200)]
misc: Add cr_str_to_nevr() and cr_str_to_nevra() and types cr_NEVR and cr_NEVRA

10 years agotests: Fix C test for sqlite module
Tomas Mlcoch [Thu, 26 Jun 2014 13:41:14 +0000 (15:41 +0200)]
tests: Fix C test for sqlite module

10 years agoInitialize threads correctly on old versions of GLib2 (RhBug: 1108787)
Tomas Mlcoch [Thu, 26 Jun 2014 13:28:51 +0000 (15:28 +0200)]
Initialize threads correctly on old versions of GLib2 (RhBug: 1108787)

10 years agoacceptance_tests: Add tests for --cachedir option
Tomas Mlcoch [Thu, 26 Jun 2014 11:59:48 +0000 (13:59 +0200)]
acceptance_tests: Add tests for --cachedir option

10 years agoDo not print log domain (get rid off C_CREATEREPOLIB prefix in log messages)
Tomas Mlcoch [Thu, 26 Jun 2014 11:56:13 +0000 (13:56 +0200)]
Do not print log domain (get rid off C_CREATEREPOLIB prefix in log messages)

10 years agocreaterepo_c: Generate cache dir to the output directory
Tomas Mlcoch [Wed, 25 Jun 2014 15:00:12 +0000 (17:00 +0200)]
createrepo_c: Generate cache dir to the output directory

10 years agoImplements support for --cachedir (interfaces of parsepkg and parsehdr module were...
Tomas Mlcoch [Wed, 25 Jun 2014 14:09:11 +0000 (16:09 +0200)]
Implements support for --cachedir (interfaces of parsepkg and parsehdr module were slightly modified)

10 years agoxml_dump: Update example of usage in module comment
Tomas Mlcoch [Wed, 25 Jun 2014 14:08:01 +0000 (16:08 +0200)]
xml_dump: Update example of usage in module comment

10 years agocmd_parser: Normalize cachedir path before it is used
Tomas Mlcoch [Wed, 25 Jun 2014 14:07:33 +0000 (16:07 +0200)]
cmd_parser: Normalize cachedir path before it is used

10 years agoPackage: new attrs siggpg, sigpgp and hdrid + support for these to parsehdr
Tomas Mlcoch [Wed, 25 Jun 2014 11:43:12 +0000 (13:43 +0200)]
Package: new attrs siggpg, sigpgp and hdrid + support for these to parsehdr

10 years agocreaterepo_c: Add --cachedir option (not implemented yet)
Tomas Mlcoch [Tue, 10 Jun 2014 14:47:37 +0000 (16:47 +0200)]
createrepo_c: Add --cachedir option (not implemented yet)

10 years agomisc: Remove use of g_date_time_* functions
Tomas Mlcoch [Tue, 10 Jun 2014 13:19:38 +0000 (15:19 +0200)]
misc: Remove use of g_date_time_* functions

10 years agoNew module dumper_thread
Tomas Mlcoch [Mon, 9 Jun 2014 13:37:56 +0000 (15:37 +0200)]
New module dumper_thread

10 years agoparsepkg: cr_package_from_rpm() refactored to use cr_package_from_rpm_base()
Tomas Mlcoch [Wed, 4 Jun 2014 14:09:57 +0000 (16:09 +0200)]
parsepkg: cr_package_from_rpm() refactored to use cr_package_from_rpm_base()

10 years agoload_metadata: Be less pedantic in ignoring old metadata with same key
Tomas Mlcoch [Wed, 4 Jun 2014 13:56:07 +0000 (15:56 +0200)]
load_metadata: Be less pedantic in ignoring old metadata with same key

10 years agoload_metadata: Fix debug message about really usable items
Tomas Mlcoch [Wed, 4 Jun 2014 13:04:24 +0000 (15:04 +0200)]
load_metadata: Fix debug message about really usable items

10 years agoAcceptance tests: New tests
Tomas Mlcoch [Wed, 4 Jun 2014 12:48:15 +0000 (14:48 +0200)]
Acceptance tests: New tests

10 years agoparsepkg: New function cr_package_from_rpm_base()
Tomas Mlcoch [Wed, 4 Jun 2014 11:59:59 +0000 (13:59 +0200)]
parsepkg: New function cr_package_from_rpm_base()

10 years agoRefactored cr_package_from_header - removed unnecessary params
Tomas Mlcoch [Tue, 3 Jun 2014 11:55:45 +0000 (13:55 +0200)]
Refactored cr_package_from_header - removed unnecessary params

10 years agoRemoved cr_xml_from_header() and refactored cr_xml_from_rpm()
Tomas Mlcoch [Tue, 3 Jun 2014 11:18:28 +0000 (13:18 +0200)]
Removed cr_xml_from_header() and refactored cr_xml_from_rpm()

10 years agoacceptance_tests: More tests
Tomas Mlcoch [Tue, 20 May 2014 12:04:09 +0000 (14:04 +0200)]
acceptance_tests: More tests

10 years agoacceptance_tests: Add base.py module with common test classes.
Tomas Mlcoch [Mon, 19 May 2014 13:50:27 +0000 (15:50 +0200)]
acceptance_tests: Add base.py module with common test classes.

10 years agocmd_parser: Return error if the specified pkglist file doesn't exists
Tomas Mlcoch [Mon, 19 May 2014 12:55:13 +0000 (14:55 +0200)]
cmd_parser: Return error if the specified pkglist file doesn't exists

10 years agoFix issues found by coverity scan
Tomas Mlcoch [Wed, 14 May 2014 14:55:29 +0000 (16:55 +0200)]
Fix issues found by coverity scan

10 years agoFix few compiler warnings
Tomas Mlcoch [Wed, 14 May 2014 13:08:09 +0000 (15:08 +0200)]
Fix few compiler warnings

10 years agoSupport for the new param --retain-old-md-by-age
Tomas Mlcoch [Wed, 14 May 2014 10:52:44 +0000 (12:52 +0200)]
Support for the new param --retain-old-md-by-age

10 years agocmd_parser: New option --retain-old-md-by-age
Tomas Mlcoch [Wed, 14 May 2014 10:50:23 +0000 (12:50 +0200)]
cmd_parser: New option --retain-old-md-by-age

10 years agoBump to 0.4.0
Tomas Mlcoch [Tue, 6 May 2014 12:51:16 +0000 (14:51 +0200)]
Bump to 0.4.0

10 years agoChange default file handling (RhBug: 1094539)
Tomas Mlcoch [Tue, 6 May 2014 12:49:23 +0000 (14:49 +0200)]
Change default file handling (RhBug: 1094539)

During update, the original createrepo leaves behind some files which
were originaly part of repodata (were listed in the repomd.xml)
and after the update they are not part of the repomd.xml but they
still exists in the repodata/ directory.

E.g. comps files (group files) - when you add a new group file
(using --groupfile) and use --update, the old groupfile remains
are in the repodata/.

This patch changes the approach and the files that are not
part of repomd.xml anymore are removed.

See: https://github.com/Tojaj/createrepo_c/wiki/New-File-Handling

10 years agoAcceptanceTests: First draft
Tomas Mlcoch [Tue, 29 Apr 2014 13:37:27 +0000 (15:37 +0200)]
AcceptanceTests: First draft

10 years agoBump to 0.3.1
Tomas Mlcoch [Mon, 28 Apr 2014 11:57:41 +0000 (13:57 +0200)]
Bump to 0.3.1

10 years agorefactoring of handling of temporary .repodata directory
Tomas Mlcoch [Tue, 8 Apr 2014 12:03:18 +0000 (14:03 +0200)]
refactoring of handling of temporary .repodata directory

10 years agoWeak deps: sqlite
Tomas Mlcoch [Tue, 8 Apr 2014 09:05:02 +0000 (11:05 +0200)]
Weak deps: sqlite

10 years agoWeak deps: package: Support weak deps during copy and free
Tomas Mlcoch [Mon, 7 Apr 2014 15:00:42 +0000 (17:00 +0200)]
Weak deps: package: Support weak deps during copy and free

10 years agoWeak deps: xml_parser_primary: Support for parsing of weak and rich dependencies
Tomas Mlcoch [Mon, 7 Apr 2014 14:26:58 +0000 (16:26 +0200)]
Weak deps: xml_parser_primary: Support for parsing of weak and rich dependencies

10 years agoWeak deps: parsehdr: Support for weak and rich dependencies (SUGGESTS, ENHANCES,...
Tomas Mlcoch [Mon, 7 Apr 2014 13:14:44 +0000 (15:14 +0200)]
Weak deps: parsehdr: Support for weak and rich dependencies (SUGGESTS, ENHANCES, RECOMMENDS, SUPPLEMENTS)

10 years agoparsehdr: Refactoring - dependency stuff moved into single list dep_items
Tomas Mlcoch [Mon, 7 Apr 2014 12:16:34 +0000 (14:16 +0200)]
parsehdr: Refactoring - dependency stuff moved into single list dep_items