services/createrepo_c.git
11 years agoxml_parser: Draft of new xml parsing module
Tomas Mlcoch [Sat, 25 May 2013 22:01:08 +0000 (00:01 +0200)]
xml_parser: Draft of new xml parsing module

11 years agoload_metadata: Removed unused variables.
Tomas Mlcoch [Sat, 25 May 2013 22:00:01 +0000 (00:00 +0200)]
load_metadata: Removed unused variables.

11 years agotests: Add path to repodata files into fixtures.
Tomas Mlcoch [Sat, 25 May 2013 21:58:56 +0000 (23:58 +0200)]
tests: Add path to repodata files into fixtures.

11 years agoerror: Add cr_strerror function and error codes + domains for new xml parsers.
Tomas Mlcoch [Sat, 25 May 2013 21:58:25 +0000 (23:58 +0200)]
error: Add cr_strerror function and error codes + domains for new xml parsers.

11 years agorefactoring: Add some asserts.
Tomas Mlcoch [Sat, 25 May 2013 08:37:35 +0000 (10:37 +0200)]
refactoring: Add some asserts.

11 years agorefactoring: Removed old and unused SWIG files.
Tomas Mlcoch [Fri, 24 May 2013 21:06:07 +0000 (23:06 +0200)]
refactoring: Removed old and unused SWIG files.

11 years agoerror: Add comments.
Tomas Mlcoch [Tue, 21 May 2013 20:57:39 +0000 (22:57 +0200)]
error: Add comments.

11 years agotests: fix interpreter path in run_gtester.sh.
Tomas Mlcoch [Fri, 17 May 2013 20:49:15 +0000 (22:49 +0200)]
tests: fix interpreter path in run_gtester.sh.

11 years agotests: Exclude mtime of file from testing.
Tomas Mlcoch [Fri, 17 May 2013 20:47:15 +0000 (22:47 +0200)]
tests: Exclude mtime of file from testing.

11 years agosqlite: Fix bug in comment with example of usage.
Tomas Mlcoch [Fri, 17 May 2013 20:32:13 +0000 (22:32 +0200)]
sqlite: Fix bug in comment with example of usage.

11 years agosqlite: Changed module interface - New interface is simpler.
Tomas Mlcoch [Thu, 16 May 2013 10:07:22 +0000 (12:07 +0200)]
sqlite: Changed module interface - New interface is simpler.

11 years agomergerepo_c: Refactoring
Tomas Mlcoch [Thu, 16 May 2013 08:22:44 +0000 (10:22 +0200)]
mergerepo_c: Refactoring

11 years agocreaterepo_c: Switch from CR_FILE to cr_XmlFile.
Tomas Mlcoch [Thu, 16 May 2013 08:11:39 +0000 (10:11 +0200)]
createrepo_c: Switch from CR_FILE to cr_XmlFile.

11 years agorepomd: Allow NULL as input record param.
Tomas Mlcoch [Thu, 16 May 2013 08:10:52 +0000 (10:10 +0200)]
repomd: Allow NULL as input record param.

11 years agoerror: Add CRE_ERROR return code for unspecified errors.
Tomas Mlcoch [Thu, 16 May 2013 08:09:25 +0000 (10:09 +0200)]
error: Add CRE_ERROR return code for unspecified errors.

11 years agoREADME: Add note about verbose tests.
Tomas Mlcoch [Thu, 16 May 2013 07:42:38 +0000 (09:42 +0200)]
README: Add note about verbose tests.

11 years agoexamples: Add simple_createrepo.py.
Tomas Mlcoch [Wed, 15 May 2013 11:43:38 +0000 (13:43 +0200)]
examples: Add simple_createrepo.py.

11 years agotests: Update XmlFile unittest.
Tomas Mlcoch [Wed, 15 May 2013 11:04:51 +0000 (13:04 +0200)]
tests: Update XmlFile unittest.

11 years agopython: Add binding + tests for xml_file module.
Tomas Mlcoch [Wed, 15 May 2013 10:37:10 +0000 (12:37 +0200)]
python: Add binding + tests for xml_file module.

11 years agopython: CreaterepoCException renamed to CreaterepoCError.
Tomas Mlcoch [Wed, 15 May 2013 10:35:51 +0000 (12:35 +0200)]
python: CreaterepoCException renamed to CreaterepoCError.

11 years agotests: Better python test for sqlite module.
Tomas Mlcoch [Wed, 15 May 2013 10:34:29 +0000 (12:34 +0200)]
tests: Better python test for sqlite module.

11 years agotests: Add -v (verbose) to python nosetests.
Tomas Mlcoch [Wed, 15 May 2013 08:09:42 +0000 (10:09 +0200)]
tests: Add -v (verbose) to python nosetests.

11 years agopy: sqlite module refactorization.
Tomas Mlcoch [Wed, 15 May 2013 06:59:41 +0000 (08:59 +0200)]
py: sqlite module refactorization.

11 years agoREADME: Add names of required packages in Ubuntu.
Tomas Mlcoch [Tue, 14 May 2013 18:36:34 +0000 (20:36 +0200)]
README: Add names of required packages in Ubuntu.

11 years agoAdd xml_file.h into the createrepo_c.h.
Tomas Mlcoch [Tue, 14 May 2013 14:48:12 +0000 (16:48 +0200)]
Add xml_file.h into the createrepo_c.h.

11 years agoNew module xml_file + test for the module.
Tomas Mlcoch [Tue, 14 May 2013 14:39:29 +0000 (16:39 +0200)]
New module xml_file + test for the module.

11 years agotests: Constant with temporary dir template.
Tomas Mlcoch [Tue, 14 May 2013 14:38:35 +0000 (16:38 +0200)]
tests: Constant with temporary dir template.

11 years agoerror: New error domain (xml_file) + Refactoring (alphabetical sort of functions...
Tomas Mlcoch [Tue, 14 May 2013 14:38:02 +0000 (16:38 +0200)]
error: New error domain (xml_file) + Refactoring (alphabetical sort of functions and constants).

11 years agocompression_wrapper: Fix description of return value for cr_read.
Tomas Mlcoch [Tue, 14 May 2013 14:36:26 +0000 (16:36 +0200)]
compression_wrapper: Fix description of return value for cr_read.

11 years agomisc: Add macro for constant string lenght calculation during compile-time.
Tomas Mlcoch [Tue, 14 May 2013 14:35:02 +0000 (16:35 +0200)]
misc: Add macro for constant string lenght calculation during compile-time.

11 years agoconstants: Add sentinel to checksum type list.
Tomas Mlcoch [Tue, 14 May 2013 09:24:33 +0000 (11:24 +0200)]
constants: Add sentinel to checksum type list.

11 years agosqlite: Add asserts.
Tomas Mlcoch [Tue, 14 May 2013 09:20:15 +0000 (11:20 +0200)]
sqlite: Add asserts.

11 years agocompression_wrapper: Add asserts.
Tomas Mlcoch [Tue, 14 May 2013 09:14:58 +0000 (11:14 +0200)]
compression_wrapper: Add asserts.

11 years agotests: exclude downloading tests
Tomas Mlcoch [Mon, 13 May 2013 13:26:02 +0000 (15:26 +0200)]
tests: exclude downloading tests

If this tests were enabled, it would cause a trouble during building package in the Koji.
Downloading is from Internet is not allowed in Koji, so this tests were failing during a build.
(Note: Failed tests means that build will be unsucessful!)

11 years agotests: Better run_gtester.sh script.
Tomas Mlcoch [Mon, 13 May 2013 13:21:03 +0000 (15:21 +0200)]
tests: Better run_gtester.sh script.

11 years agoUpdate README.md
Tomas Mlcoch [Mon, 13 May 2013 12:07:03 +0000 (14:07 +0200)]
Update README.md

11 years agoCMake: Remove unused CPACK stuff.
Tomas Mlcoch [Mon, 13 May 2013 11:43:23 +0000 (13:43 +0200)]
CMake: Remove unused CPACK stuff.

11 years agotests: test_data/ renamed to testdata/.
Tomas Mlcoch [Mon, 13 May 2013 11:23:48 +0000 (13:23 +0200)]
tests: test_data/ renamed to testdata/.

11 years agoutils: Better scripts for generating tarballs and rpms.
Tomas Mlcoch [Mon, 13 May 2013 11:20:22 +0000 (13:20 +0200)]
utils: Better scripts for generating tarballs and rpms.

11 years agolocate_metadata: Add error check for locating metadata call.
Tomas Mlcoch [Mon, 13 May 2013 11:18:31 +0000 (13:18 +0200)]
locate_metadata: Add error check for locating metadata call.

11 years agotests: prefix for C test changed to 'test_'.
Tomas Mlcoch [Mon, 13 May 2013 11:03:42 +0000 (13:03 +0200)]
tests: prefix for C test changed to 'test_'.

11 years agotests: Add fixtures.h with common constants and other global stuff.
Tomas Mlcoch [Mon, 13 May 2013 10:57:03 +0000 (12:57 +0200)]
tests: Add fixtures.h with common constants and other global stuff.

11 years agoUpdate requires in README.md.
Tomas Mlcoch [Mon, 13 May 2013 07:57:06 +0000 (09:57 +0200)]
Update requires in README.md.

11 years agoUpdate c tests
Tomas Mlcoch [Thu, 9 May 2013 12:44:04 +0000 (14:44 +0200)]
Update c tests

11 years agoload_metadata: Add GError support.
Tomas Mlcoch [Thu, 9 May 2013 12:41:59 +0000 (14:41 +0200)]
load_metadata: Add GError support.

11 years agoparsepkg: Add GError support.
Tomas Mlcoch [Thu, 9 May 2013 09:21:07 +0000 (11:21 +0200)]
parsepkg: Add GError support.

11 years agoparsehdr: Add GError support.
Tomas Mlcoch [Thu, 9 May 2013 08:19:01 +0000 (10:19 +0200)]
parsehdr: Add GError support.

11 years agorepomd: cr_repomd_record_groupfile rename to cr_repomd_record_compress_and_fill
Tomas Mlcoch [Thu, 9 May 2013 07:51:38 +0000 (09:51 +0200)]
repomd: cr_repomd_record_groupfile rename to cr_repomd_record_compress_and_fill

11 years agoSmall refactoring
Tomas Mlcoch [Thu, 9 May 2013 06:51:46 +0000 (08:51 +0200)]
Small refactoring

11 years agoFirst stage of improved error handling
Tomas Mlcoch [Wed, 8 May 2013 14:28:02 +0000 (16:28 +0200)]
First stage of improved error handling

Add errror module with error code enumeration and error domains.
Add GError** as param to some functions in xml_dump and repomd modules.

This improved interface is aimed to better (more informative and verbose)
error messages for programs using this library and createrepo_c python
bindings.

11 years agopy: Fix num type conversion in repomd record setters.
Tomas Mlcoch [Wed, 8 May 2013 11:41:10 +0000 (13:41 +0200)]
py: Fix num type conversion in repomd record setters.

11 years agopytests: Exclude time_file value from tests.
Tomas Mlcoch [Wed, 8 May 2013 11:37:26 +0000 (13:37 +0200)]
pytests: Exclude time_file value from tests.

11 years agoPython: Experimantal implementation of Python bindings + tests.
Tomas Mlcoch [Mon, 6 May 2013 12:04:22 +0000 (14:04 +0200)]
Python: Experimantal implementation of Python bindings + tests.

11 years agopackage: Add cr_package_copy method.
Tomas Mlcoch [Mon, 6 May 2013 10:06:14 +0000 (12:06 +0200)]
package: Add cr_package_copy method.

11 years agocr_safe_string_chunk_insert moved from parsehdr into the misc module.
Tomas Mlcoch [Mon, 6 May 2013 10:05:33 +0000 (12:05 +0200)]
cr_safe_string_chunk_insert moved from parsehdr into the misc module.

11 years agorepomd: fix comments in header file.
Tomas Mlcoch [Mon, 22 Apr 2013 12:05:43 +0000 (14:05 +0200)]
repomd: fix comments in header file.

11 years agosqlite: Refactoring.
Tomas Mlcoch [Mon, 22 Apr 2013 08:04:23 +0000 (10:04 +0200)]
sqlite: Refactoring.

11 years agosqlite: Add err object to cr_db_add_(primary|filelists|other)_pkg functions.
Tomas Mlcoch [Fri, 19 Apr 2013 11:36:16 +0000 (13:36 +0200)]
sqlite: Add err object to cr_db_add_(primary|filelists|other)_pkg functions.

11 years agosqlite: Do not recreate tables and triggers while opening existing db.
Tomas Mlcoch [Fri, 19 Apr 2013 10:37:57 +0000 (12:37 +0200)]
sqlite: Do not recreate tables and triggers while opening existing db.

11 years agoc_unittests: Update function names.
Tomas Mlcoch [Thu, 18 Apr 2013 13:37:10 +0000 (15:37 +0200)]
c_unittests: Update function names.

11 years agomergerepo_c: Set logging right after cmd args parsing.
Tomas Mlcoch [Mon, 15 Apr 2013 07:01:41 +0000 (09:01 +0200)]
mergerepo_c: Set logging right after cmd args parsing.

11 years agomergerepo_c: Implicitly use --all with --koji.
Tomas Mlcoch [Mon, 15 Apr 2013 06:42:45 +0000 (08:42 +0200)]
mergerepo_c: Implicitly use --all with --koji.

11 years agoMan page update.
Tomas Mlcoch [Mon, 15 Apr 2013 06:26:15 +0000 (08:26 +0200)]
Man page update.

11 years agomergerepo_c: little refactoring.
Tomas Mlcoch [Thu, 11 Apr 2013 15:31:24 +0000 (17:31 +0200)]
mergerepo_c: little refactoring.

11 years agomergerepo_c: Add --simple-md-filenames and --unique-md-filenames options. (RhBug...
Tomas Mlcoch [Thu, 11 Apr 2013 13:14:24 +0000 (15:14 +0200)]
mergerepo_c: Add --simple-md-filenames and --unique-md-filenames options. (RhBug: 950994)

11 years agomergerepo_c: Always include noarch while mimic koji mergerepos. (RhBug: 950991)
Tomas Mlcoch [Thu, 11 Apr 2013 12:46:52 +0000 (14:46 +0200)]
mergerepo_c: Always include noarch while mimic koji mergerepos. (RhBug: 950991)

11 years agoAdd new testing packages to test_data.
Tomas Mlcoch [Thu, 11 Apr 2013 12:45:02 +0000 (14:45 +0200)]
Add new testing packages to test_data.

11 years agoRenamed testing specs.
Tomas Mlcoch [Thu, 11 Apr 2013 12:42:18 +0000 (14:42 +0200)]
Renamed testing specs.

11 years agoRename cr_package_parser_shutdown to cr_package_parser_cleanup().
Tomas Mlcoch [Mon, 8 Apr 2013 07:26:00 +0000 (09:26 +0200)]
Rename cr_package_parser_shutdown to cr_package_parser_cleanup().

11 years agoAdd missing doc.
Tomas Mlcoch [Mon, 8 Apr 2013 07:24:56 +0000 (09:24 +0200)]
Add missing doc.

11 years agocr_db_info_update is now safe from sqlinjection.
Tomas Mlcoch [Mon, 8 Apr 2013 07:23:57 +0000 (09:23 +0200)]
cr_db_info_update is now safe from sqlinjection.

11 years agoCode refactoring.
Tomas Mlcoch [Wed, 3 Apr 2013 12:59:49 +0000 (14:59 +0200)]
Code refactoring.

11 years agoAdd createrepo_c logos.
Tomas Mlcoch [Wed, 3 Apr 2013 12:54:41 +0000 (14:54 +0200)]
Add createrepo_c logos.

11 years agoAdd test spec with diacritics in ISO-8859-1.
Tomas Mlcoch [Wed, 3 Apr 2013 12:52:49 +0000 (14:52 +0200)]
Add test spec with diacritics in ISO-8859-1.

11 years agoVersion bump to 0.1.17
Tomas Mlcoch [Mon, 25 Mar 2013 14:30:51 +0000 (15:30 +0100)]
Version bump to 0.1.17

11 years agoConvert all strings to UTF-8 while dumping XML. (related RhBug: 920795)
Tomas Mlcoch [Mon, 25 Mar 2013 14:06:59 +0000 (15:06 +0100)]
Convert all strings to UTF-8 while dumping XML. (related RhBug: 920795)

11 years agoAdd specs with diacritics (two different encoding).
Tomas Mlcoch [Mon, 25 Mar 2013 11:24:50 +0000 (12:24 +0100)]
Add specs with diacritics (two different encoding).

11 years agoFix double free() when old metadata parsing failed. (related to RhBug: 920795)
Tomas Mlcoch [Mon, 25 Mar 2013 08:49:49 +0000 (09:49 +0100)]
Fix double free() when old metadata parsing failed. (related to RhBug: 920795)

11 years agoRemove creation of empty keyring (BZ 918645).
Tomas Mlcoch [Mon, 11 Mar 2013 09:49:52 +0000 (10:49 +0100)]
Remove creation of empty keyring (BZ 918645).

11 years agoBump to 0.1.16
Tomas Mlcoch [Thu, 7 Mar 2013 07:38:54 +0000 (08:38 +0100)]
Bump to 0.1.16

11 years agoAdd cr_package_nevra() function.
Tomas Mlcoch [Mon, 4 Mar 2013 14:00:50 +0000 (15:00 +0100)]
Add cr_package_nevra() function.

11 years agoRename constants in the version.h.
Tomas Mlcoch [Mon, 4 Mar 2013 11:23:52 +0000 (12:23 +0100)]
Rename constants in the version.h.

11 years agoChange the way of #including createrepo_c library.
Tomas Mlcoch [Mon, 4 Mar 2013 10:11:59 +0000 (11:11 +0100)]
Change the way of #including createrepo_c library.

11 years agocr_MetadataLocation uses only .tmp flag insted of .tmp_dir.
Tomas Mlcoch [Mon, 4 Mar 2013 08:49:37 +0000 (09:49 +0100)]
cr_MetadataLocation uses only .tmp flag insted of .tmp_dir.

11 years agodoc: Add example of usage load_metadata module.
Tomas Mlcoch [Mon, 25 Feb 2013 15:51:43 +0000 (16:51 +0100)]
doc: Add example of usage load_metadata module.

11 years agodoc: Add example of usage xml_dump module.
Tomas Mlcoch [Mon, 25 Feb 2013 15:51:20 +0000 (16:51 +0100)]
doc: Add example of usage xml_dump module.

11 years agodoc: Add example of usage of sqlite module.
Tomas Mlcoch [Mon, 25 Feb 2013 15:51:02 +0000 (16:51 +0100)]
doc: Add example of usage of sqlite module.

11 years agodoc: example of usage for repomd module.
Tomas Mlcoch [Mon, 25 Feb 2013 15:06:45 +0000 (16:06 +0100)]
doc: example of usage for repomd module.

11 years agoload_metadata module refactoring
Tomas Mlcoch [Mon, 25 Feb 2013 13:43:43 +0000 (14:43 +0100)]
load_metadata module refactoring

11 years agolocate_metadata module refactoring
Tomas Mlcoch [Mon, 25 Feb 2013 13:34:13 +0000 (14:34 +0100)]
locate_metadata module refactoring

11 years agoparsepkg and parsehdr module refactoring
Tomas Mlcoch [Mon, 25 Feb 2013 13:19:15 +0000 (14:19 +0100)]
parsepkg and parsehdr module refactoring

11 years agorepomd module refactoring.
Tomas Mlcoch [Mon, 25 Feb 2013 12:50:08 +0000 (13:50 +0100)]
repomd module refactoring.

11 years agoDoxygen: Use module global \addtogroup instead of \ingroup per function.
Tomas Mlcoch [Mon, 25 Feb 2013 12:05:03 +0000 (13:05 +0100)]
Doxygen: Use module global \addtogroup instead of \ingroup per function.

11 years agoSqlite module refactoring.
Tomas Mlcoch [Mon, 25 Feb 2013 11:23:16 +0000 (12:23 +0100)]
Sqlite module refactoring.

11 years agoRemove redundant MODULE constant.
Tomas Mlcoch [Mon, 25 Feb 2013 11:08:17 +0000 (12:08 +0100)]
Remove redundant MODULE constant.

11 years agoxml_dump(_.*)? module refactoring
Tomas Mlcoch [Mon, 25 Feb 2013 10:46:14 +0000 (11:46 +0100)]
xml_dump(_.*)? module refactoring

11 years agoFix doxygen doc gen.
Tomas Mlcoch [Mon, 25 Feb 2013 09:38:01 +0000 (10:38 +0100)]
Fix doxygen doc gen.

11 years agoCmake scripts refactored & README update.
Tomas Mlcoch [Mon, 25 Feb 2013 07:53:08 +0000 (08:53 +0100)]
Cmake scripts refactored & README update.

11 years agoUse VERSION.cmake for set current version instead of src/version.h.
Tomas Mlcoch [Fri, 22 Feb 2013 09:46:22 +0000 (10:46 +0100)]
Use VERSION.cmake for set current version instead of src/version.h.

11 years agoFix memory leak in cr_package_parser_init/shutdown functions.
Tomas Mlcoch [Thu, 21 Feb 2013 15:55:10 +0000 (16:55 +0100)]
Fix memory leak in cr_package_parser_init/shutdown functions.