services/createrepo_c.git
11 years agotests: Fix issue with missing rpath to libcreaterepo_c.so in tests while building...
Tomas Mlcoch [Tue, 2 Jul 2013 12:53:31 +0000 (14:53 +0200)]
tests: Fix issue with missing rpath to libcreaterepo_c.so in tests while building for epel6 (CMake2.6).

11 years agoPrevent returning of uninitialized values from cr_xml_dump.
Tomas Mlcoch [Tue, 2 Jul 2013 12:25:07 +0000 (14:25 +0200)]
Prevent returning of uninitialized values from cr_xml_dump.

11 years agoload_metadata: cr_Metadata -> cr_Metadata *
Tomas Mlcoch [Tue, 2 Jul 2013 11:17:39 +0000 (13:17 +0200)]
load_metadata: cr_Metadata -> cr_Metadata *

11 years agodoc: Generate doc in English instead of Czech and exclude internal header files.
Tomas Mlcoch [Tue, 2 Jul 2013 10:34:36 +0000 (12:34 +0200)]
doc: Generate doc in English instead of Czech and exclude internal header files.

11 years agodic: Fix doxygen warnings.
Tomas Mlcoch [Tue, 2 Jul 2013 10:17:43 +0000 (12:17 +0200)]
dic: Fix doxygen warnings.

11 years agoxml_dump: Use G_GINT64_FORMAT instead of harcoded format.
Tomas Mlcoch [Tue, 2 Jul 2013 09:33:04 +0000 (11:33 +0200)]
xml_dump: Use G_GINT64_FORMAT instead of harcoded format.

11 years agoerror: Add CRE_ASSERT return code.
Tomas Mlcoch [Tue, 2 Jul 2013 08:36:30 +0000 (10:36 +0200)]
error: Add CRE_ASSERT return code.

11 years agofix: Prevent use uninitialized value in NDEBUG is enabled and assert() take no effect.
Tomas Mlcoch [Tue, 2 Jul 2013 07:38:01 +0000 (09:38 +0200)]
fix: Prevent use uninitialized value in NDEBUG is enabled and assert() take no effect.

11 years agoREADME.md: Add note about compilation of C tests.
Tomas Mlcoch [Tue, 2 Jul 2013 07:32:18 +0000 (09:32 +0200)]
README.md: Add note about compilation of C tests.

11 years agocmake: Fix cofigure_file for __init__.py
Tomas Mlcoch [Mon, 1 Jul 2013 15:16:31 +0000 (17:16 +0200)]
cmake: Fix cofigure_file for __init__.py

11 years agoutils: Add +x to cleanup.sh
Tomas Mlcoch [Mon, 1 Jul 2013 15:08:26 +0000 (17:08 +0200)]
utils: Add +x to cleanup.sh

11 years agotests: For testing files in sqlite use Set instead of List
Tomas Mlcoch [Mon, 1 Jul 2013 15:06:54 +0000 (17:06 +0200)]
tests: For testing files in sqlite use Set instead of List

11 years agotests: Use assertTrue(isinstance.. instead of assertIsInstance( (For comptatibility...
Tomas Mlcoch [Mon, 1 Jul 2013 15:04:24 +0000 (17:04 +0200)]
tests: Use assertTrue(isinstance..  instead of assertIsInstance( (For comptatibility reasons)

11 years agoutils: Add script to remove builded rpm packages.
Tomas Mlcoch [Mon, 1 Jul 2013 14:43:58 +0000 (16:43 +0200)]
utils: Add script to remove builded rpm packages.

11 years agocompatibility: Use full path in CONFIGURE_FILE
Tomas Mlcoch [Mon, 1 Jul 2013 14:38:01 +0000 (16:38 +0200)]
compatibility: Use full path in CONFIGURE_FILE

11 years agocompatibility: Use mkdtemp instead of g_mkdtemp.
Tomas Mlcoch [Mon, 1 Jul 2013 13:56:31 +0000 (15:56 +0200)]
compatibility: Use mkdtemp instead of g_mkdtemp.

11 years agocmake: Fix FILE COPY for cmake < 2.8.0
Tomas Mlcoch [Mon, 1 Jul 2013 13:40:50 +0000 (15:40 +0200)]
cmake: Fix FILE COPY for cmake < 2.8.0

11 years agocreaterepo_c: Do buffer dump after error cleanup to prevent deadlock (RhBug: 975331).
Tomas Mlcoch [Mon, 1 Jul 2013 13:14:00 +0000 (15:14 +0200)]
createrepo_c: Do buffer dump after error cleanup to prevent deadlock (RhBug: 975331).

11 years agocreaterepo_c: Switch order of g_mutex_unlock and g_cond_broadcast.
Tomas Mlcoch [Mon, 1 Jul 2013 12:20:58 +0000 (14:20 +0200)]
createrepo_c: Switch order of g_mutex_unlock and g_cond_broadcast.

11 years agocreaterepo_c: Removed input_dir item from struct CmdOptions.
Tomas Mlcoch [Sun, 30 Jun 2013 16:55:36 +0000 (18:55 +0200)]
createrepo_c: Removed input_dir item from struct CmdOptions.

11 years agocreaterepo_c: Repomdrecord filling use threads.
Tomas Mlcoch [Mon, 24 Jun 2013 17:26:54 +0000 (19:26 +0200)]
createrepo_c: Repomdrecord filling use threads.

11 years agothreads: Add parallel repomd record fill.
Tomas Mlcoch [Mon, 24 Jun 2013 16:46:06 +0000 (18:46 +0200)]
threads: Add parallel repomd record fill.

11 years agoAdd example for paralelized compression
Tomas Mlcoch [Fri, 21 Jun 2013 11:01:21 +0000 (13:01 +0200)]
Add example for paralelized compression

11 years agomergerepo_c: Speed UP! Use threads for DB records compression.
Tomas Mlcoch [Mon, 17 Jun 2013 15:04:58 +0000 (17:04 +0200)]
mergerepo_c: Speed UP! Use threads for DB records compression.

11 years agocreaterepo_c: Speed UP! Use threads for DB records compression.
Tomas Mlcoch [Mon, 17 Jun 2013 14:52:21 +0000 (16:52 +0200)]
createrepo_c: Speed UP! Use threads for DB records compression.

11 years agothreads: New module with useful set of function for use in GThreadPool.
Tomas Mlcoch [Mon, 17 Jun 2013 14:17:41 +0000 (16:17 +0200)]
threads: New module with useful set of function for use in GThreadPool.

11 years agocreaterepo_c, mergerepo_c: Code cleanup
Tomas Mlcoch [Mon, 17 Jun 2013 13:10:17 +0000 (15:10 +0200)]
createrepo_c, mergerepo_c: Code cleanup

11 years agopython: Better exception reporting
Tomas Mlcoch [Thu, 13 Jun 2013 14:44:33 +0000 (16:44 +0200)]
python: Better exception reporting

Return more appropriate python exceptions instead of CreaterepoCError in some cases.

11 years agocompression_wrapper: cr_open_with_stat renamed to cr_sopen.
Tomas Mlcoch [Thu, 13 Jun 2013 11:55:32 +0000 (13:55 +0200)]
compression_wrapper: cr_open_with_stat renamed to cr_sopen.

11 years agopython: Add compression_suffix and detect_compression functions.
Tomas Mlcoch [Thu, 13 Jun 2013 11:39:44 +0000 (13:39 +0200)]
python: Add compression_suffix and detect_compression functions.

11 years agopython: Add CrFile class (Bindings for the CR_FILE object).
Tomas Mlcoch [Thu, 13 Jun 2013 11:02:58 +0000 (13:02 +0200)]
python: Add CrFile class (Bindings for the CR_FILE object).

11 years agotests: Fix compression type in test_xml_file.py
Tomas Mlcoch [Thu, 13 Jun 2013 11:02:01 +0000 (13:02 +0200)]
tests: Fix compression type in test_xml_file.py

11 years agopython: Fix reference counting of ContentStat in XmlFile.
Tomas Mlcoch [Thu, 13 Jun 2013 10:09:07 +0000 (12:09 +0200)]
python: Fix reference counting of ContentStat in XmlFile.

11 years agodeltarepo: ...
Tomas Mlcoch [Wed, 12 Jun 2013 14:03:31 +0000 (16:03 +0200)]
deltarepo: ...

11 years agodeltarepo: ...
Tomas Mlcoch [Wed, 12 Jun 2013 13:57:55 +0000 (15:57 +0200)]
deltarepo: ...

11 years agopython: Add cr.UNKNOWN_CHECKSUM constant.
Tomas Mlcoch [Wed, 12 Jun 2013 13:49:25 +0000 (15:49 +0200)]
python: Add cr.UNKNOWN_CHECKSUM constant.

11 years agodeltarepo: ...
Tomas Mlcoch [Tue, 11 Jun 2013 15:10:33 +0000 (17:10 +0200)]
deltarepo: ...

11 years agopython: Add misc module.
Tomas Mlcoch [Tue, 11 Jun 2013 10:21:32 +0000 (12:21 +0200)]
python: Add misc module.

11 years agorepomd: Add cr_repomd_record_load_contentstat function.
Tomas Mlcoch [Tue, 11 Jun 2013 08:42:26 +0000 (10:42 +0200)]
repomd: Add cr_repomd_record_load_contentstat function.

11 years agotests: Fix python test for ContentStat object.
Tomas Mlcoch [Mon, 10 Jun 2013 16:17:22 +0000 (18:17 +0200)]
tests: Fix python test for ContentStat object.

11 years agodeltarepo: draft v2
Tomas Mlcoch [Mon, 10 Jun 2013 12:53:54 +0000 (14:53 +0200)]
deltarepo: draft v2

11 years agoPython: Add checksum module.
Tomas Mlcoch [Mon, 10 Jun 2013 12:51:02 +0000 (14:51 +0200)]
Python: Add checksum module.

11 years agochecksum: Fix cr_checksum_type for sha checksum.
Tomas Mlcoch [Mon, 10 Jun 2013 12:49:28 +0000 (14:49 +0200)]
checksum: Fix cr_checksum_type for sha checksum.

11 years agoPython: xml_parser: Fix error when newpkgcb returns None.
Tomas Mlcoch [Mon, 10 Jun 2013 12:01:24 +0000 (14:01 +0200)]
Python: xml_parser: Fix error when newpkgcb returns None.

11 years agoPython: Fix module name in object type string.
Tomas Mlcoch [Mon, 10 Jun 2013 11:40:49 +0000 (13:40 +0200)]
Python: Fix module name in object type string.

11 years agodeltarepo: Add draft of deltarepo.
Tomas Mlcoch [Mon, 10 Jun 2013 09:18:47 +0000 (11:18 +0200)]
deltarepo: Add draft of deltarepo.

11 years agoPython: Add contentstat source files.
Tomas Mlcoch [Mon, 10 Jun 2013 07:15:22 +0000 (09:15 +0200)]
Python: Add contentstat source files.

11 years agoREADME.md: Add link to RedHat bugzilla.
Tomas Mlcoch [Sun, 9 Jun 2013 12:38:29 +0000 (14:38 +0200)]
README.md: Add link to RedHat bugzilla.

11 years agoDoc update
Tomas Mlcoch [Fri, 7 Jun 2013 11:26:17 +0000 (13:26 +0200)]
Doc update

11 years agopython: Add ContentStat object.
Tomas Mlcoch [Thu, 6 Jun 2013 14:18:17 +0000 (16:18 +0200)]
python: Add ContentStat object.

11 years agomergerepo_c: Speed up! (Support for content checksum).
Tomas Mlcoch [Thu, 6 Jun 2013 12:35:50 +0000 (14:35 +0200)]
mergerepo_c: Speed up! (Support for content checksum).

11 years agocreaterepo_c: Speed up! (Support for content checksum).
Tomas Mlcoch [Thu, 6 Jun 2013 12:07:16 +0000 (14:07 +0200)]
createrepo_c: Speed up! (Support for content checksum).

11 years agoxml_file: Support for cr_ContentStat.
Tomas Mlcoch [Thu, 6 Jun 2013 11:11:09 +0000 (13:11 +0200)]
xml_file: Support for cr_ContentStat.

11 years agocompression_wrapper: Little change in use of cr_ContentStat object.
Tomas Mlcoch [Thu, 6 Jun 2013 10:54:50 +0000 (12:54 +0200)]
compression_wrapper: Little change in use of cr_ContentStat object.

11 years agomisc: Add cr_compress_file_with_stat function.
Tomas Mlcoch [Wed, 5 Jun 2013 15:02:31 +0000 (17:02 +0200)]
misc: Add cr_compress_file_with_stat function.

11 years agocompression_wrapper: Support for filling cr_ContentStat object.
Tomas Mlcoch [Wed, 5 Jun 2013 14:06:07 +0000 (16:06 +0200)]
compression_wrapper: Support for filling cr_ContentStat object.

11 years agocompression_wrapper: Add cr_ContentStat object.
Tomas Mlcoch [Wed, 5 Jun 2013 12:57:18 +0000 (14:57 +0200)]
compression_wrapper: Add cr_ContentStat object.

11 years agoRepomd: RepomdRecord timestamp, size and size_open switched to gint64 from long.
Tomas Mlcoch [Wed, 5 Jun 2013 11:15:48 +0000 (13:15 +0200)]
Repomd: RepomdRecord timestamp, size and size_open switched to gint64 from long.

11 years agorepomd: cr_repomd_xml_dump renamed to: cr_xml_dump_repomd and moved into the xml_dump...
Tomas Mlcoch [Wed, 5 Jun 2013 10:56:51 +0000 (12:56 +0200)]
repomd: cr_repomd_xml_dump renamed to: cr_xml_dump_repomd and moved into the xml_dump module.

11 years agorepomd: Suppress warning about unknown compression if NO_COMPRESSION used in fill().
Tomas Mlcoch [Wed, 5 Jun 2013 09:02:20 +0000 (11:02 +0200)]
repomd: Suppress warning about unknown compression if NO_COMPRESSION used in fill().

11 years agopython: Add short contants for compression algorithms (GZ, BZ2 and XZ).
Tomas Mlcoch [Wed, 5 Jun 2013 08:54:49 +0000 (10:54 +0200)]
python: Add short contants for compression algorithms (GZ, BZ2 and XZ).

11 years agorepomd: Add support for xml:base attr at location element.
Tomas Mlcoch [Tue, 4 Jun 2013 14:08:23 +0000 (16:08 +0200)]
repomd: Add support for xml:base attr at location element.

11 years agopython: Support for None in set_str func.
Tomas Mlcoch [Tue, 4 Jun 2013 12:54:34 +0000 (14:54 +0200)]
python: Support for None in set_str func.

11 years agorepomd: Add support for repoid tag.
Tomas Mlcoch [Tue, 4 Jun 2013 12:52:12 +0000 (14:52 +0200)]
repomd: Add support for repoid tag.

11 years agorepomd: Reverse order of distro tags (FIFO instead of LIFO).
Tomas Mlcoch [Tue, 4 Jun 2013 12:07:07 +0000 (14:07 +0200)]
repomd: Reverse order of distro tags (FIFO instead of LIFO).

11 years agopython: Repomd class support loading repomd.xml during construction (add path param).
Tomas Mlcoch [Tue, 4 Jun 2013 11:53:10 +0000 (13:53 +0200)]
python: Repomd class support loading repomd.xml during construction (add path param).

11 years agopython: Add default params for xml_parser_* functions.
Tomas Mlcoch [Tue, 4 Jun 2013 11:43:11 +0000 (13:43 +0200)]
python: Add default params for xml_parser_* functions.

11 years agoexamples: Update python example
Tomas Mlcoch [Tue, 4 Jun 2013 07:18:46 +0000 (09:18 +0200)]
examples: Update python example

11 years agocreaterepo_c+mergerepo_c: Fix bug with repomd gen.
Tomas Mlcoch [Mon, 3 Jun 2013 14:53:42 +0000 (16:53 +0200)]
createrepo_c+mergerepo_c: Fix bug with repomd gen.

11 years agopy: Fix memory leak.
Tomas Mlcoch [Mon, 3 Jun 2013 14:33:56 +0000 (16:33 +0200)]
py: Fix memory leak.

11 years agorepomd: Refactoring + python fuctions + etc.
Tomas Mlcoch [Mon, 3 Jun 2013 10:33:25 +0000 (12:33 +0200)]
repomd: Refactoring + python fuctions + etc.

11 years agoxml_parser_repomd: More tests
Tomas Mlcoch [Mon, 3 Jun 2013 07:36:41 +0000 (09:36 +0200)]
xml_parser_repomd: More tests

11 years agoFix few compiler warnings + test for xml_parser_repomd
Tomas Mlcoch [Mon, 3 Jun 2013 07:21:38 +0000 (09:21 +0200)]
Fix few compiler warnings + test for xml_parser_repomd

11 years agoxml_parser_repomd: Finished
Tomas Mlcoch [Sun, 2 Jun 2013 19:00:01 +0000 (21:00 +0200)]
xml_parser_repomd: Finished

11 years agoxml_parser_repomd: Incomplete draft
Tomas Mlcoch [Sun, 2 Jun 2013 13:24:49 +0000 (15:24 +0200)]
xml_parser_repomd: Incomplete draft

11 years agorepomd: Switched cr_Repomd and cr_RepomdRecord from pointers to structs.
Tomas Mlcoch [Sun, 2 Jun 2013 10:13:56 +0000 (12:13 +0200)]
repomd: Switched cr_Repomd and cr_RepomdRecord from pointers to structs.

11 years agoerror: Add messages for new errors.
Tomas Mlcoch [Sun, 2 Jun 2013 08:30:26 +0000 (10:30 +0200)]
error: Add messages for new errors.

11 years agopython: xml_parser: Callbacks interface is similar as c interface since now.
Tomas Mlcoch [Sat, 1 Jun 2013 16:35:01 +0000 (18:35 +0200)]
python: xml_parser: Callbacks interface is similar as c interface since now.

11 years agomisc: Add support for GError reporting.
Tomas Mlcoch [Sat, 1 Jun 2013 16:03:03 +0000 (18:03 +0200)]
misc: Add support for GError reporting.

11 years agopython: Add new checksum constant values.
Tomas Mlcoch [Sat, 1 Jun 2013 11:20:49 +0000 (13:20 +0200)]
python: Add new checksum constant values.

11 years agobash-completion: Add new supported checksums (sha, sha224, sha384, sha512).
Tomas Mlcoch [Sat, 1 Jun 2013 11:15:36 +0000 (13:15 +0200)]
bash-completion: Add new supported checksums (sha, sha224, sha384, sha512).

11 years agochecksum: New module + test + all checksum related operations switched to the new...
Tomas Mlcoch [Sat, 1 Jun 2013 11:11:59 +0000 (13:11 +0200)]
checksum: New module + test + all checksum related operations switched to the new module.

11 years agopython: Fix reference decrementing in xml_parser
Tomas Mlcoch [Sat, 1 Jun 2013 06:38:19 +0000 (08:38 +0200)]
python: Fix reference decrementing in xml_parser

11 years agoxml_parser: Add license header into the xml_parser.c.
Tomas Mlcoch [Fri, 31 May 2013 21:17:23 +0000 (23:17 +0200)]
xml_parser: Add license header into the xml_parser.c.

11 years agotests: Add new tests for XML parsers.
Tomas Mlcoch [Fri, 31 May 2013 19:59:16 +0000 (21:59 +0200)]
tests: Add new tests for XML parsers.

11 years agopython: xml_parsers now store reference to a pkg object while parsing to the object
Tomas Mlcoch [Fri, 31 May 2013 19:55:05 +0000 (21:55 +0200)]
python: xml_parsers now store reference to a pkg object while parsing to the object

11 years agopython: Add bindings for xml_parse functions + base tests.
Tomas Mlcoch [Fri, 31 May 2013 12:11:56 +0000 (14:11 +0200)]
python: Add bindings for xml_parse functions + base tests.

11 years agoload_metadata: Switched from internal (ugly) xml parser to new xml_parser module.
Tomas Mlcoch [Fri, 31 May 2013 12:11:06 +0000 (14:11 +0200)]
load_metadata: Switched from internal (ugly) xml parser to new xml_parser module.

11 years agoxml_parser: small refactoring
Tomas Mlcoch [Fri, 31 May 2013 12:10:00 +0000 (14:10 +0200)]
xml_parser: small refactoring

11 years agoxml_parser: Fix false warning from the cr_xml_parser_strtoll.
Tomas Mlcoch [Fri, 31 May 2013 12:09:07 +0000 (14:09 +0200)]
xml_parser: Fix false warning from the cr_xml_parser_strtoll.

11 years agoxml_parser_primary: Fix typo in name of obsoletes tag.
Tomas Mlcoch [Fri, 31 May 2013 08:27:43 +0000 (10:27 +0200)]
xml_parser_primary: Fix typo in name of obsoletes tag.

11 years agopython: Add draft for support of xml_parser module.
Tomas Mlcoch [Thu, 30 May 2013 20:54:44 +0000 (22:54 +0200)]
python: Add draft for support of xml_parser module.

11 years agocreaterepo_h: Add xml_parser.h
Tomas Mlcoch [Thu, 30 May 2013 20:40:43 +0000 (22:40 +0200)]
createrepo_h: Add xml_parser.h

11 years agoxml_parser: Primary parser add option for ignoring files.
Tomas Mlcoch [Thu, 30 May 2013 15:10:19 +0000 (17:10 +0200)]
xml_parser: Primary parser add option for ignoring files.

11 years agomisc: Add cr_safe_string_chunk_insert_null
Tomas Mlcoch [Thu, 30 May 2013 15:08:58 +0000 (17:08 +0200)]
misc: Add cr_safe_string_chunk_insert_null

11 years agoFor SHA1 checksum use type string 'sha' instead of 'sha1'.
Tomas Mlcoch [Thu, 30 May 2013 13:37:51 +0000 (15:37 +0200)]
For SHA1 checksum use type string 'sha' instead of 'sha1'.

11 years agoxml_parser: Add primary.xml parser.
Tomas Mlcoch [Thu, 30 May 2013 12:14:04 +0000 (14:14 +0200)]
xml_parser: Add primary.xml parser.

11 years agoxml_parser: Add other.xml parser.
Tomas Mlcoch [Thu, 30 May 2013 12:13:40 +0000 (14:13 +0200)]
xml_parser: Add other.xml parser.

11 years agoxml_parser_internal: Add cr_xml_parser_strtoll.
Tomas Mlcoch [Thu, 30 May 2013 12:12:50 +0000 (14:12 +0200)]
xml_parser_internal: Add cr_xml_parser_strtoll.

11 years agoxml_parser_filelists: refactoring.
Tomas Mlcoch [Thu, 30 May 2013 12:12:05 +0000 (14:12 +0200)]
xml_parser_filelists: refactoring.