services/createrepo_c.git
9 years agocleanup: More sane _cleanup_file_close_
Tomas Mlcoch [Wed, 1 Apr 2015 12:47:18 +0000 (14:47 +0200)]
cleanup: More sane _cleanup_file_close_

9 years agolocate_metadata: cr_locate_metadata() now takes gboolean instead of int
Tomas Mlcoch [Wed, 1 Apr 2015 11:38:22 +0000 (13:38 +0200)]
locate_metadata: cr_locate_metadata() now takes gboolean instead of int

9 years agocreaterepo_shared: Avoid double removal of the same directory by the failure_exit_cle...
Tomas Mlcoch [Wed, 1 Apr 2015 10:59:09 +0000 (12:59 +0200)]
createrepo_shared: Avoid double removal of the same directory by the failure_exit_cleanup()

9 years agosqliterepo_c: Use cr_setup_logging()
Tomas Mlcoch [Tue, 31 Mar 2015 14:22:43 +0000 (16:22 +0200)]
sqliterepo_c: Use cr_setup_logging()

9 years agomodifyrepo_c: Use cr_setup_logging()
Tomas Mlcoch [Tue, 31 Mar 2015 14:21:03 +0000 (16:21 +0200)]
modifyrepo_c: Use cr_setup_logging()

9 years agomergerepo_c: Use cr_setup_logging()
Tomas Mlcoch [Tue, 31 Mar 2015 14:20:46 +0000 (16:20 +0200)]
mergerepo_c: Use cr_setup_logging()

9 years agoMove logging setup from createrepo_c to createrepo_shared
Tomas Mlcoch [Tue, 31 Mar 2015 14:18:16 +0000 (16:18 +0200)]
Move logging setup from createrepo_c to createrepo_shared

9 years ago.gitignore update
Tomas Mlcoch [Tue, 31 Mar 2015 14:10:07 +0000 (16:10 +0200)]
.gitignore update

9 years agoutils: Add single_test.py script
Tomas Mlcoch [Tue, 31 Mar 2015 14:09:18 +0000 (16:09 +0200)]
utils: Add single_test.py script

9 years agoUpdate .gitignore
Tomas Mlcoch [Tue, 31 Mar 2015 14:08:55 +0000 (16:08 +0200)]
Update .gitignore

9 years agocreaterepo_c: Move exit/signal handlers logic into createrepo_shared module
Tomas Mlcoch [Tue, 31 Mar 2015 14:05:32 +0000 (16:05 +0200)]
createrepo_c: Move exit/signal handlers logic into createrepo_shared module

9 years agoerror: Remove other (unused) error domains
Tomas Mlcoch [Mon, 30 Mar 2015 13:50:37 +0000 (15:50 +0200)]
error: Remove other (unused) error domains

9 years agoUse only one error domain: CREATEREPO_C_ERROR
Tomas Mlcoch [Mon, 30 Mar 2015 13:49:36 +0000 (15:49 +0200)]
Use only one error domain: CREATEREPO_C_ERROR

9 years agomisc: Remove unused var
Tomas Mlcoch [Mon, 30 Mar 2015 13:39:36 +0000 (15:39 +0200)]
misc: Remove unused var

9 years agoerror: Add ERR_DOMAIN constant to each module that reports error
Tomas Mlcoch [Mon, 30 Mar 2015 12:24:07 +0000 (14:24 +0200)]
error: Add ERR_DOMAIN constant to each module that reports error

9 years agosqliterepo: Add stub for sqliterepo
Tomas Mlcoch [Mon, 30 Mar 2015 11:43:49 +0000 (13:43 +0200)]
sqliterepo: Add stub for sqliterepo

9 years agoerror: Rename domain CR_CREATEREPO_C_ERROR -> CREATEREPO_C_ERROR
Tomas Mlcoch [Mon, 30 Mar 2015 11:19:35 +0000 (13:19 +0200)]
error: Rename domain CR_CREATEREPO_C_ERROR -> CREATEREPO_C_ERROR

9 years agocreaterepo_c: Refactoring
Tomas Mlcoch [Mon, 30 Mar 2015 11:14:14 +0000 (13:14 +0200)]
createrepo_c: Refactoring

9 years agoerror: Add new error codes and new error domain
Tomas Mlcoch [Mon, 30 Mar 2015 11:13:45 +0000 (13:13 +0200)]
error: Add new error codes and new error domain

9 years agoAdd createrepo_shared module
Tomas Mlcoch [Mon, 30 Mar 2015 11:13:03 +0000 (13:13 +0200)]
Add createrepo_shared module

9 years agomisc: Use gboolean as return val for cr_better_copy_file() and cr_copy_file()
Tomas Mlcoch [Mon, 30 Mar 2015 11:09:39 +0000 (13:09 +0200)]
misc: Use gboolean as return val for cr_better_copy_file() and cr_copy_file()

9 years agocreaterepo_c: Small refactoring
Tomas Mlcoch [Wed, 25 Mar 2015 16:02:43 +0000 (17:02 +0100)]
createrepo_c: Small refactoring

9 years agocreaterepo_c: Add some comments
Tomas Mlcoch [Wed, 25 Mar 2015 16:00:35 +0000 (17:00 +0100)]
createrepo_c: Add some comments

9 years agoBump to 0.7.7
Tomas Mlcoch [Fri, 20 Feb 2015 08:16:04 +0000 (09:16 +0100)]
Bump to 0.7.7

9 years agoAUTHORS: Add Luke Macken
Tomas Mlcoch [Mon, 9 Feb 2015 15:17:52 +0000 (16:17 +0100)]
AUTHORS: Add Luke Macken

9 years agoExample: simple_modifyrepo.py: Refactoring
Tomas Mlcoch [Mon, 9 Feb 2015 15:17:35 +0000 (16:17 +0100)]
Example: simple_modifyrepo.py: Refactoring

9 years agoMerge pull request #14 from lmacken/master
Tomas Mlcoch [Mon, 9 Feb 2015 14:47:58 +0000 (15:47 +0100)]
Merge pull request #14 from lmacken/master

Examples: Add a simple modifyrepo python example

9 years agoExamples: Add a simple modifyrepo python example
Luke Macken [Sun, 8 Feb 2015 05:30:33 +0000 (22:30 -0700)]
Examples: Add a simple modifyrepo python example

9 years agolocate_metadata: Refactoring
Tomas Mlcoch [Fri, 6 Feb 2015 09:59:42 +0000 (10:59 +0100)]
locate_metadata: Refactoring

9 years agoutils: cr_download(): Dup input handle and better error messages
Tomas Mlcoch [Fri, 6 Feb 2015 11:45:43 +0000 (12:45 +0100)]
utils: cr_download(): Dup input handle and better error messages

9 years agocleanup: Add _cleanup_file_fclose_
Tomas Mlcoch [Fri, 6 Feb 2015 09:58:53 +0000 (10:58 +0100)]
cleanup: Add _cleanup_file_fclose_

9 years agolocate_metadata: Use proper temp dir
Tomas Mlcoch [Fri, 6 Feb 2015 09:14:55 +0000 (10:14 +0100)]
locate_metadata: Use proper temp dir

9 years agoAdd cleanup.h
Tomas Mlcoch [Fri, 6 Feb 2015 09:14:19 +0000 (10:14 +0100)]
Add cleanup.h

9 years agocreaterepo_c: Update description of the --local-sqlite option
Tomas Mlcoch [Fri, 6 Feb 2015 09:07:18 +0000 (10:07 +0100)]
createrepo_c: Update description of the --local-sqlite option

9 years agoProper directory for temporary files when --local-sqlite is used (Issue #12)
Tomas Mlcoch [Fri, 6 Feb 2015 08:28:53 +0000 (09:28 +0100)]
Proper directory for temporary files when --local-sqlite is used (Issue #12)

9 years agoMerge pull request #13 from lmacken/master
Tomas Mlcoch [Fri, 6 Feb 2015 08:16:55 +0000 (09:16 +0100)]
Merge pull request #13 from lmacken/master

Python: Get the updateinfo generation examples working.

9 years agoPython: Get the updateinfo generation examples working.
Luke Macken [Fri, 6 Feb 2015 02:29:55 +0000 (19:29 -0700)]
Python: Get the updateinfo generation examples working.

Prior to this patch, both examples yield:

    Traceback (most recent call last):
      File "updateinfo_gen_02.py", line 56, in <module>
        generate()
      File "updateinfo_gen_02.py", line 38, in generate
        rec.issued_date = "2014-08-14 00:00:00"
    TypeError: DateTime or None expected!

9 years agoUpdate AUTHORS file
Tomas Mlcoch [Mon, 26 Jan 2015 08:44:33 +0000 (09:44 +0100)]
Update AUTHORS file

9 years agoMerge pull request #11 from scop/bashcomp-install
Tomas Mlcoch [Mon, 26 Jan 2015 08:43:03 +0000 (09:43 +0100)]
Merge pull request #11 from scop/bashcomp-install

Bring bash completion install dir and filenames up to date with current bash-completion

9 years agoBring bash completion install dir and filenames up to date with current bash-completion
Ville Skyttä [Sat, 24 Jan 2015 22:59:43 +0000 (00:59 +0200)]
Bring bash completion install dir and filenames up to date with current bash-completion

9 years agoBump to 0.7.6
Tomas Mlcoch [Thu, 8 Jan 2015 12:01:09 +0000 (13:01 +0100)]
Bump to 0.7.6

9 years agoPython: Add __contains__ method to Repomd() class
Tomas Mlcoch [Sun, 28 Dec 2014 20:18:44 +0000 (21:18 +0100)]
Python: Add __contains__ method to Repomd() class

9 years agoBump to 0.7.5
Tomas Mlcoch [Sun, 28 Dec 2014 20:07:23 +0000 (21:07 +0100)]
Bump to 0.7.5

9 years agoPython repomd: Support for iteration and indexing by type - e.g. record = repomd...
Tomas Mlcoch [Sun, 28 Dec 2014 20:04:12 +0000 (21:04 +0100)]
Python repomd: Support for iteration and indexing by type - e.g. record = repomd['primary']

9 years agoShow warning if an XML parser probably parsed a bad type of medata (New XML parser...
Tomas Mlcoch [Sun, 28 Dec 2014 18:20:24 +0000 (19:20 +0100)]
Show warning if an XML parser probably parsed a bad type of medata (New XML parser warning type CR_XML_WARNING_BADMDTYPE)

9 years agoAdd two missing initializers
Tomas Mlcoch [Thu, 18 Dec 2014 14:00:34 +0000 (15:00 +0100)]
Add two missing initializers

9 years agodrpm library: Explicitly try to locate libdrpm.so.0
Tomas Mlcoch [Thu, 11 Dec 2014 15:27:52 +0000 (16:27 +0100)]
drpm library: Explicitly try to locate libdrpm.so.0

9 years agodeltarpms: Don't show options for delta rpms if support is not available
Tomas Mlcoch [Thu, 11 Dec 2014 13:24:32 +0000 (14:24 +0100)]
deltarpms: Don't show options for delta rpms if support is not available

9 years agoUpdate AUTHORS file
Tomas Mlcoch [Wed, 12 Nov 2014 17:06:34 +0000 (18:06 +0100)]
Update AUTHORS file

9 years agoBump to 0.7.4
Tomas Mlcoch [Tue, 11 Nov 2014 13:50:43 +0000 (14:50 +0100)]
Bump to 0.7.4

9 years agocreaterepo_c, mergerepo_c: Follow redirs by default while downloading remote repos
Tomas Mlcoch [Tue, 11 Nov 2014 13:44:57 +0000 (14:44 +0100)]
createrepo_c, mergerepo_c: Follow redirs by default while downloading remote repos

9 years agomergerepo_c: Fix segfault when a package without sourcerpm is part of metadata and...
Tomas Mlcoch [Tue, 11 Nov 2014 13:00:38 +0000 (14:00 +0100)]
mergerepo_c: Fix segfault when a package without sourcerpm is part of metadata and --koji option is used

9 years agoBump version to 0.7.3
Tomas Mlcoch [Mon, 10 Nov 2014 15:15:13 +0000 (16:15 +0100)]
Bump version to 0.7.3

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