services/createrepo_c.git
10 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

10 years agoCMake: Support for build with custom RPM version (CMake now supports RPM_PATH)
Tomas Mlcoch [Mon, 7 Apr 2014 11:42:10 +0000 (13:42 +0200)]
CMake: Support for build with custom RPM version (CMake now supports RPM_PATH)

10 years agoWeek deps: Primary XML dumper support for weak deps.
Tomas Mlcoch [Tue, 1 Apr 2014 14:52:28 +0000 (16:52 +0200)]
Week deps: Primary XML dumper support for weak deps.

10 years agoWeek deps: Add new package with weak deps fake-Rimmer
Tomas Mlcoch [Tue, 1 Apr 2014 14:47:21 +0000 (16:47 +0200)]
Week deps: Add new package with weak deps fake-Rimmer

10 years agoWeek deps: Support for the cr_Package/Package object
Tomas Mlcoch [Tue, 1 Apr 2014 12:12:11 +0000 (14:12 +0200)]
Week deps: Support for the cr_Package/Package object

10 years agoUpdate utility scripts
Tomas Mlcoch [Fri, 14 Mar 2014 09:18:29 +0000 (10:18 +0100)]
Update utility scripts

10 years agoBump to 0.3.0
Tomas Mlcoch [Mon, 10 Mar 2014 07:35:20 +0000 (08:35 +0100)]
Bump to 0.3.0

10 years agoNew approach for loading of metadata 3/3
Tomas Mlcoch [Wed, 5 Mar 2014 22:03:11 +0000 (23:03 +0100)]
New approach for loading of metadata 3/3

New bitfield in cr_Package loadingflags, that contains information
about what was loaded to the package (primary, filelists, other) and
where is the package from (parsed from rpm header, from xml, etc..)

Thanks to this field, the XML metadata parser can recognize that
a XML chunk with files (filelists.xml) or changelos (other.xml)
was already parsed for the package and skip duplicit chunks.

10 years agoNew approach for loading of metadata 2/3
Tomas Mlcoch [Wed, 5 Mar 2014 19:42:42 +0000 (20:42 +0100)]
New approach for loading of metadata 2/3

Add cr_HashTableKeyDupAction that specify behavior of metadata loader in case of duplicated items.

See comment at cr_HashTableKeyDupAction enum.

10 years agoNew approach for loading of metadata 1/3.
Tomas Mlcoch [Wed, 5 Mar 2014 18:47:47 +0000 (19:47 +0100)]
New approach for loading of metadata 1/3.

Description:

If there are two (or more) the same packages (same mtime, size and basename)
with the same checksum. Load the metadata only once (such packages can have
and probably have a different local_href (different directory))
but the directory is not important during --update.

If there are two (or more) seemingly the same packages (the packages have the
same checksum, but different mtime, size or basename). Ignore all of these packages!
The checksum is internally blacklisted during the loading of metadata, and
metadata of each package wich has the checksum will be skiped.

Important note:

As you can see, this approach is not optimal if you want to load a
whole metadata. But it is great if you wan to load a metadata which
are gonna be used during --update.

If you don't like this behaviour during use of cr_metadata_locate_and_load_xml()
then just quit using the function and use
the cr_xml_parse_(primary|filelists|other) directly by yourself.

10 years agocreaterepo_c: Support for changelog-limit = -1 (Dumps all changelogs)
Tomas Mlcoch [Tue, 4 Mar 2014 09:27:53 +0000 (10:27 +0100)]
createrepo_c: Support for changelog-limit = -1 (Dumps all changelogs)

10 years agocmd_parser: Changed int to gint.
Tomas Mlcoch [Tue, 4 Mar 2014 09:23:06 +0000 (10:23 +0100)]
cmd_parser: Changed int to gint.

10 years agoRemove strerror() from error messages for rpmReadPackageFile() error
Tomas Mlcoch [Mon, 3 Mar 2014 14:58:10 +0000 (15:58 +0100)]
Remove strerror() from error messages for rpmReadPackageFile() error

10 years agoCMake: Modify debug compilation flags.
Tomas Mlcoch [Mon, 3 Mar 2014 12:22:07 +0000 (13:22 +0100)]
CMake: Modify debug compilation flags.

10 years agoUpdate man pages
Tomas Mlcoch [Mon, 3 Mar 2014 08:59:42 +0000 (09:59 +0100)]
Update man pages

10 years agoFix usage strings in help.
Tomas Mlcoch [Mon, 3 Mar 2014 08:42:10 +0000 (09:42 +0100)]
Fix usage strings in help.

10 years agoCMake: Remove deltarepo
Tomas Mlcoch [Sun, 2 Mar 2014 18:11:40 +0000 (19:11 +0100)]
CMake: Remove deltarepo

10 years agodeltarepo: Removed from createrepo_c
Tomas Mlcoch [Tue, 25 Feb 2014 17:05:20 +0000 (18:05 +0100)]
deltarepo: Removed from createrepo_c

DeltaRepo is now standalone project.
DeltaRepo's homepage: https://github.com/Tojaj/DeltaRepo

10 years agoutils: Update make_rpm.sh script
Tomas Mlcoch [Tue, 25 Feb 2014 16:58:52 +0000 (17:58 +0100)]
utils: Update make_rpm.sh script

10 years agodeltarepo: Implemented Updater().update_from_origin()
Tomas Mlcoch [Tue, 25 Feb 2014 12:06:20 +0000 (13:06 +0100)]
deltarepo: Implemented Updater().update_from_origin()

10 years agodeltarepo: Download only necessary delta metadata
Tomas Mlcoch [Mon, 24 Feb 2014 20:59:44 +0000 (21:59 +0100)]
deltarepo: Download only necessary delta metadata

10 years agodeltarepo: use real cost during solving
Tomas Mlcoch [Mon, 24 Feb 2014 18:20:47 +0000 (19:20 +0100)]
deltarepo: use real cost during solving

10 years agodeltarepo: sizes in deltarepos.xml
Tomas Mlcoch [Mon, 24 Feb 2014 17:44:41 +0000 (18:44 +0100)]
deltarepo: sizes in deltarepos.xml

10 years agodeltarepo: support for <data> elements in deltarepos.xml
Tomas Mlcoch [Mon, 24 Feb 2014 16:03:24 +0000 (17:03 +0100)]
deltarepo: support for <data> elements in deltarepos.xml

10 years agodeltarepos: fix gen scripts for acceptance tests
Tomas Mlcoch [Mon, 24 Feb 2014 13:06:32 +0000 (14:06 +0100)]
deltarepos: fix gen scripts for acceptance tests

10 years agoDeltaRepo: Implemented apply_resolved_path
Tomas Mlcoch [Mon, 24 Feb 2014 12:49:48 +0000 (13:49 +0100)]
DeltaRepo: Implemented apply_resolved_path

10 years agoUpdate repocontenthash.py
Tomas Mlcoch [Mon, 24 Feb 2014 11:20:44 +0000 (12:20 +0100)]
Update repocontenthash.py

10 years agoprogress on deltarepo
Tomas Mlcoch [Thu, 20 Feb 2014 16:06:01 +0000 (17:06 +0100)]
progress on deltarepo

10 years agoVersion bump to 0.2.2
Tomas Mlcoch [Thu, 20 Feb 2014 13:27:50 +0000 (14:27 +0100)]
Version bump to 0.2.2

10 years agoREADME: Add sphinx into doc deps
Tomas Mlcoch [Thu, 20 Feb 2014 12:28:39 +0000 (13:28 +0100)]
README: Add sphinx into doc deps

10 years agoFix few warnings in python bindings
Tomas Mlcoch [Thu, 20 Feb 2014 11:41:03 +0000 (06:41 -0500)]
Fix few warnings in python bindings

10 years agoFix python bindings to be compatible with Python < 2.7
Tomas Mlcoch [Thu, 20 Feb 2014 11:27:02 +0000 (06:27 -0500)]
Fix python bindings to be compatible with Python < 2.7

10 years agoFew fixes to compatibility with glib 2.28
Tomas Mlcoch [Thu, 20 Feb 2014 11:22:21 +0000 (06:22 -0500)]
Few fixes to compatibility with glib 2.28

10 years agomisc: Add cr_spawn_check_exit_status()
Tomas Mlcoch [Thu, 20 Feb 2014 11:15:40 +0000 (06:15 -0500)]
misc: Add cr_spawn_check_exit_status()

10 years agoerror: New error codes for process spawning
Tomas Mlcoch [Thu, 20 Feb 2014 11:10:34 +0000 (06:10 -0500)]
error: New error codes for process spawning

10 years agoFix building on RHEL6
Tomas Mlcoch [Thu, 20 Feb 2014 09:45:15 +0000 (04:45 -0500)]
Fix building on RHEL6

10 years agocmake: Do not install deltarepo stuff yet
Tomas Mlcoch [Thu, 20 Feb 2014 09:18:22 +0000 (10:18 +0100)]
cmake: Do not install deltarepo stuff yet

10 years agohelper: Removed cr_remove_metadata() and cr_get_list_of_md_locations()
Tomas Mlcoch [Wed, 19 Feb 2014 22:49:04 +0000 (23:49 +0100)]
helper: Removed cr_remove_metadata() and cr_get_list_of_md_locations()

10 years agohelpers: cr_remove_metadata_classic now uses cr_repodata_blacklist_classic
Tomas Mlcoch [Wed, 19 Feb 2014 22:33:39 +0000 (23:33 +0100)]
helpers: cr_remove_metadata_classic now uses cr_repodata_blacklist_classic

10 years agohelpers: Add cr_repodata_blacklist and cr_repodata_blacklist_classic functions
Tomas Mlcoch [Wed, 19 Feb 2014 21:55:08 +0000 (22:55 +0100)]
helpers: Add cr_repodata_blacklist and cr_repodata_blacklist_classic functions

10 years agoSome progress on helpers module
Tomas Mlcoch [Mon, 17 Feb 2014 21:17:07 +0000 (22:17 +0100)]
Some progress on helpers module

10 years agoAdd module helpers
Tomas Mlcoch [Mon, 17 Feb 2014 16:16:35 +0000 (17:16 +0100)]
Add module helpers

10 years agoNew function: cr_old_metadata_retention()
Tomas Mlcoch [Mon, 17 Feb 2014 15:29:12 +0000 (16:29 +0100)]
New function: cr_old_metadata_retention()

10 years agoGrrr, remove forgotten debug print :)
Tomas Mlcoch [Mon, 17 Feb 2014 15:03:28 +0000 (16:03 +0100)]
Grrr, remove forgotten debug print :)

10 years agoSanitize strings before writting them to XML or sqlitedb (ISSUE #3)
Tomas Mlcoch [Mon, 17 Feb 2014 14:32:54 +0000 (15:32 +0100)]
Sanitize strings before writting them to XML or sqlitedb (ISSUE #3)

Exclude chars with val <32 (except the 9, 10, 13) from the strings.

10 years agodeltarepo: Another progress...
Tomas Mlcoch [Thu, 13 Feb 2014 15:53:14 +0000 (16:53 +0100)]
deltarepo: Another progress...

10 years agodeltarepo: Implemented Dijkstra's algorithm.
Tomas Mlcoch [Tue, 11 Feb 2014 21:45:40 +0000 (22:45 +0100)]
deltarepo: Implemented Dijkstra's algorithm.

10 years agodeltarepo: Implemented graph_from_links method of Graph class.
Tomas Mlcoch [Tue, 11 Feb 2014 20:12:07 +0000 (21:12 +0100)]
deltarepo: Implemented graph_from_links method of Graph class.