services/createrepo_c.git
5 years agoadd dependence libcurl4 lib for unbuntu:18.04 19/199719/1
biao716.wang [Tue, 7 Aug 2018 10:34:14 +0000 (18:34 +0800)]
add dependence libcurl4 lib for unbuntu:18.04

3290199406e5c582fe7f238c18ed96d8ae39dc24

Change-Id: I5180511e469d3251ca3005e40198d70839579ea4

Change-Id: I5180511e469d3251ca3005e40198d70839579ea4

6 years agofix prerevew test "test_createrepo" error, yum-metadata-diff command not found. 22/152822/1
fushuai [Wed, 27 Sep 2017 07:15:57 +0000 (15:15 +0800)]
fix prerevew test "test_createrepo" error, yum-metadata-diff command not found.
opensuse and ubuntu office web not provide yum-metadata-diff related packages.
Signed-off-by: fushuai <shuai01.fu@samsung.com>
Change-Id: I3c2851bfc6834e2855e5de3b47c20f249b11d0ea

6 years agofix prerevew test "test_createrepo_compactive" error, not found createrepo. 20/152820/1
fushuai [Wed, 27 Sep 2017 07:14:28 +0000 (15:14 +0800)]
fix prerevew test "test_createrepo_compactive" error, not found createrepo.
delete repowithbadpackages case because of createrepo not support.

Change-Id: I96f16f96c110e00d96fd37f41e4c2c5e4bd51556
Signed-off-by: fushuai <shuai01.fu@samsung.com>
6 years agofix ubuntu16.04 import _createrepo_c error 17/152817/1
fushuai [Wed, 27 Sep 2017 06:42:11 +0000 (14:42 +0800)]
fix ubuntu16.04 import _createrepo_c error

Change-Id: Icbd315a6975e1e72444a015cc192c5fb5c8fc54a
Signed-off-by: fushuai <shuai01.fu@samsung.com>
7 years agoRelease 0.10.1 release-20170331 sandbox/soong9/v_0.10.0
SoonKyu Park [Sat, 25 Mar 2017 02:13:37 +0000 (11:13 +0900)]
Release 0.10.1

Change-Id: Ic26437d8fe725d3a175d262a4644affb930734e7

7 years agoAdd dependency on libglib2 in control file upstream/0.10.1
SoonKyu Park [Tue, 28 Mar 2017 07:42:20 +0000 (16:42 +0900)]
Add dependency on libglib2 in control file

Change-Id: If50a2e82fbc4bcca96e753d2bfc22f5e449f0d93

7 years agofix build error for ubuntu
SoonKyu Park [Tue, 28 Mar 2017 05:55:33 +0000 (14:55 +0900)]
fix build error for ubuntu

Change-Id: I87a9e1b07c7dd545f01354cbc29966ce8dfd50d9

7 years agoFix build error
SoonKyu Park [Sat, 25 Mar 2017 02:46:39 +0000 (11:46 +0900)]
Fix build error
Add %{_bindir}/sqliterepo_c

Change-Id: Id2b6c38e1040732975ff014cb29d77e6eafb3818

7 years agoEnable RPM_WEAK_DEPS_SUPPORT and ENABLE_LEGACY_WEAKDEPS
yang.zhang [Thu, 16 Mar 2017 08:29:25 +0000 (16:29 +0800)]
Enable RPM_WEAK_DEPS_SUPPORT and ENABLE_LEGACY_WEAKDEPS

Change-Id: I385aecfa9530e6177bd00f786782f369d8d936ea

7 years agoadd libssl-dev in control file
shuai.fu [Sat, 5 Nov 2016 02:13:54 +0000 (10:13 +0800)]
add  libssl-dev in control file

Change-Id: I23d09a1b082039b6afe8fd927fa155a79d8c7ddb
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
Conflicts:
debian/control

7 years ago Add debian package
shuai.fu [Sat, 22 Oct 2016 05:23:40 +0000 (13:23 +0800)]
 Add debian package

Change-Id: I94c6746447a7c061b0bfc35760193381a71b7e8f
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
Conflicts:
AUTHORS

7 years agoNosetest: Adding library path for _createrepo_cmodule.so.
hyokeun [Mon, 9 Nov 2015 07:53:53 +0000 (16:53 +0900)]
Nosetest: Adding library path for _createrepo_cmodule.so.

Change-Id: I4b0e793882dd394979353baeef35e910866ca039

Conflicts:
src/python/__init__.py

7 years agoAdd git-buildpackage config
Ed Bartosh [Wed, 25 Mar 2015 08:34:33 +0000 (10:34 +0200)]
Add git-buildpackage config

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
7 years agoPackaged in OpenSuSE
Hasan Wan [Tue, 8 Oct 2013 03:50:23 +0000 (11:50 +0800)]
Packaged in OpenSuSE

Signed-off-by: Hasan Wan <hasan.wan@intel.com>
7 years agoadd the supports of vcs tag
Hasan Wan [Mon, 30 Sep 2013 07:55:39 +0000 (15:55 +0800)]
add the supports of vcs tag

Signed-off-by: Hasan Wan <hasan.wan@intel.com>
7 years agoDoc: Update man pages upstream/0.10.0
Tomas Mlcoch [Thu, 23 Feb 2017 14:49:22 +0000 (15:49 +0100)]
Doc: Update man pages

7 years agoMerge pull request #63 from noelbk/infra-78
Tomas Mlcoch [Thu, 23 Feb 2017 14:39:20 +0000 (15:39 +0100)]
Merge pull request #63 from noelbk/infra-78

createrepo_c should exit nonzero if there are any errors.

7 years agoupdaterecord-py.c: Fix SIGSEGV during date-time parsing (#72)
Tomas Mlcoch [Tue, 31 Jan 2017 09:07:14 +0000 (10:07 +0100)]
updaterecord-py.c: Fix SIGSEGV during date-time parsing (#72)

7 years agoMerge pull request #70 from rpm-software-management/my_versions_in_dep_filtering
Tomas Mlcoch [Sun, 29 Jan 2017 11:13:14 +0000 (12:13 +0100)]
Merge pull request #70 from rpm-software-management/my_versions_in_dep_filtering

Consider versions during dep filtering for requires/provides (Issue #67)

7 years agoConsider versions during dep filtering for requires/provides (Issue #67)
Tomas Mlcoch [Mon, 26 Dec 2016 09:44:05 +0000 (10:44 +0100)]
Consider versions during dep filtering for requires/provides (Issue #67)

This should avoid situations where a package provides and requires same
capability (a dependency) with different versions but createrepo_c
strip the require down (because it already saw it in provides).

This should fix the issue in a better way than PR #68

7 years agoMerge pull request #64 from puiterwijk/set-record-be-set
Tomas Mlcoch [Mon, 26 Dec 2016 09:04:29 +0000 (10:04 +0100)]
Merge pull request #64 from puiterwijk/set-record-be-set

Make set_record act like a setter

7 years agoadd error_exit_val argument to exit nonzero if there are processing errors
Noel Burton-Krahn [Wed, 14 Dec 2016 00:55:30 +0000 (16:55 -0800)]
add error_exit_val argument to exit nonzero if there are processing errors

7 years agocreaterepo_c should exit nonzero if there are any errors.
Noel Burton-Krahn [Mon, 19 Sep 2016 22:26:59 +0000 (15:26 -0700)]
createrepo_c should exit nonzero if there are any errors.

Issue: https://github.com/rpm-software-management/createrepo_c/issues/58

7 years agoMerge pull request #66 from puiterwijk/close-updateinfo
Tomas Mlcoch [Thu, 29 Sep 2016 06:49:45 +0000 (08:49 +0200)]
Merge pull request #66 from puiterwijk/close-updateinfo

Close BZ2 compressed files on cr_close

7 years agoClose BZ2 compressed files on cr_close
Patrick Uiterwijk [Wed, 28 Sep 2016 12:09:07 +0000 (12:09 +0000)]
Close BZ2 compressed files on cr_close

Per bzip2 documentation: "BZ2_bzReadClose does not call fclose on the underlying file
handle, so you should do that yourself if appropriate.".
This patch adds a INNERFILE element to CR_FILE to keep track of the FILE object so we
can properly close the file on cr_close.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
7 years agoAdd test to make sure that set_record overrides the current record
Patrick Uiterwijk [Mon, 26 Sep 2016 12:48:31 +0000 (12:48 +0000)]
Add test to make sure that set_record overrides the current record

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
7 years agoMake set_record act like a setter
Patrick Uiterwijk [Mon, 26 Sep 2016 12:45:25 +0000 (12:45 +0000)]
Make set_record act like a setter

This will make sure that when set_record is called, all existing
records of the same type are removed.
It makes no sense to have multiple records of the same type,
and it actively breaks libhifs checksum validation.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
7 years agoUpdate cleanup script to remove also packages for Python 3
Tomas Mlcoch [Thu, 8 Sep 2016 07:48:18 +0000 (09:48 +0200)]
Update cleanup script to remove also packages for Python 3

7 years agocr_lock_repo: Fix double free (RhBz: 1355720)
Tomas Mlcoch [Thu, 8 Sep 2016 07:45:38 +0000 (09:45 +0200)]
cr_lock_repo: Fix double free (RhBz: 1355720)

7 years agocr_lock_repo: Fix segfault caused by freed tmp_repodata_dir variable
Tomas Mlcoch [Fri, 19 Aug 2016 12:59:26 +0000 (14:59 +0200)]
cr_lock_repo: Fix segfault caused by freed tmp_repodata_dir variable

8 years agoMerge pull request #55 from sspans/sspans-allow-single
Tomas Mlcoch [Wed, 4 May 2016 05:59:23 +0000 (07:59 +0200)]
Merge pull request #55 from sspans/sspans-allow-single

Allow single repos in mergerepo_c

8 years agoMerge pull request #59 from M0ses/disabled_python
Tomas Mlcoch [Tue, 3 May 2016 14:53:45 +0000 (16:53 +0200)]
Merge pull request #59 from M0ses/disabled_python

added switch to turn of python support

8 years agoadded switch to turn of python support
Frank Schreiner [Thu, 14 Apr 2016 10:19:18 +0000 (12:19 +0200)]
added switch to turn of python support

8 years agoUpdate AUTHORS
Tomas Mlcoch [Mon, 11 Apr 2016 10:08:01 +0000 (12:08 +0200)]
Update AUTHORS

8 years agoMerge pull request #56 from rpm-software-management/split
Tomas Mlcoch [Mon, 11 Apr 2016 09:07:43 +0000 (11:07 +0200)]
Merge pull request #56 from rpm-software-management/split

Add --split option

8 years agoRefactor --split option
Tomas Mlcoch [Mon, 11 Apr 2016 08:56:50 +0000 (10:56 +0200)]
Refactor --split option

8 years agojust cleanup to be closer to original code
Frank Schreiner [Wed, 6 Apr 2016 23:03:39 +0000 (23:03 +0000)]
just cleanup to be closer to original code

8 years agooptimized memory usage
Frank Schreiner [Wed, 6 Apr 2016 22:38:41 +0000 (22:38 +0000)]
optimized memory usage

8 years agofixed memory leaks while '--update'
Frank Schreiner [Tue, 5 Apr 2016 16:39:01 +0000 (16:39 +0000)]
fixed memory leaks while '--update'

8 years agofixed problem with baseurl while '--update'
Frank Schreiner [Tue, 5 Apr 2016 14:47:29 +0000 (14:47 +0000)]
fixed problem with baseurl while '--update'

8 years agocheck given directories in split mode
Frank Schreiner [Mon, 4 Apr 2016 20:41:32 +0000 (20:41 +0000)]
check given directories in split mode

8 years agoMerge branch 'split_option' of github.com:M0ses/createrepo_c into split_option
Frank Schreiner [Fri, 1 Apr 2016 07:14:45 +0000 (07:14 +0000)]
Merge branch 'split_option' of github.com:M0ses/createrepo_c into split_option

8 years agochanged order of arguments for load_rpm (err last arg now)
Frank Schreiner [Fri, 1 Apr 2016 07:14:26 +0000 (07:14 +0000)]
changed order of arguments for load_rpm (err last arg now)

8 years agocli options description now match man page description
Frank Schreiner [Thu, 31 Mar 2016 04:30:03 +0000 (06:30 +0200)]
cli options description now match man page description

8 years agofixed option description and added split option to man page
Frank Schreiner [Wed, 30 Mar 2016 13:50:36 +0000 (15:50 +0200)]
fixed option description and added split option to man page

8 years agoUpdate mergerepo_c.c
Sten Spans [Thu, 24 Mar 2016 09:47:16 +0000 (10:47 +0100)]
Update mergerepo_c.c

8 years agofixed size of minimal string while checking base url
Frank Schreiner [Thu, 24 Mar 2016 09:22:22 +0000 (09:22 +0000)]
fixed size of minimal string while checking base url

8 years agoadded patch from mls
Frank Schreiner [Tue, 22 Mar 2016 16:47:49 +0000 (16:47 +0000)]
added patch from mls

8 years agolocation_base now set to 'media://' if no -u option set
Frank Schreiner [Fri, 18 Mar 2016 06:32:20 +0000 (06:32 +0000)]
location_base now set to 'media://' if no -u option set

8 years agomade handling of media:// similar to python version
Frank Schreiner [Wed, 16 Mar 2016 22:10:47 +0000 (22:10 +0000)]
made handling of media:// similar to python version

8 years agoimproved handling of package_count - working with pointer now
Frank Schreiner [Wed, 16 Mar 2016 20:15:28 +0000 (20:15 +0000)]
improved handling of package_count - working with pointer now

8 years agocleanup
Frank Schreiner [Wed, 16 Mar 2016 13:44:57 +0000 (13:44 +0000)]
cleanup

8 years agoadded media_id and unique package_count
Frank Schreiner [Wed, 16 Mar 2016 13:30:54 +0000 (13:30 +0000)]
added media_id and unique package_count

8 years agoincluded loop
Frank Schreiner [Tue, 15 Mar 2016 14:08:28 +0000 (14:08 +0000)]
included loop

8 years agoadded '--split' to command line options
Frank Schreiner [Tue, 15 Mar 2016 10:49:04 +0000 (10:49 +0000)]
added '--split' to command line options

8 years agoSupport for threaded XZ encoding (Issue #53)
Tomas Mlcoch [Mon, 14 Mar 2016 12:34:44 +0000 (13:34 +0100)]
Support for threaded XZ encoding (Issue #53)

Added new CMAKE (compile-time) option ``-DENABLE_THREADED_XZ_ENCODER=ON``
which enable use of threaded ``lzma_stream_encoder_mt`` encoder instead
of single-threaded ``lzma_easy_encoder``.

Note: This option is disabled by default because Createrepo_c
parallelize a lot of tasks (including compression) by default, this
only adds extra threads on XZ library level which causes thread bloat
and doesn't bring any performance boost for most use-cases.
On regular hardware (e.g. less-or-equal 4 cores) this option may even
cause degradation of performance.

Threaded decoding isn't supported yet as it isn't supported
in the xz library [1].

[1] http://comments.gmane.org/gmane.comp.compression.xz.devel/225

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
8 years agoList enabled features in output for --version arg
Tomas Mlcoch [Fri, 11 Mar 2016 11:36:57 +0000 (12:36 +0100)]
List enabled features in output for --version arg

This patch adds use of cr_version_string_with_features()
when --version info output is printed to stdout
and when version string is printed into verbose log.

This will help with debuging issues caused by a specific
feature enabled during compilation time.

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
8 years agoMisc: Add cr_version_string_with_features() function
Tomas Mlcoch [Fri, 11 Mar 2016 11:23:45 +0000 (12:23 +0100)]
Misc: Add cr_version_string_with_features() function

This function returns a static string which contains
version of createrepo_c library and list of features
which were enabled during compilation time.

Currently there are only two features:
"DeltaRPM" which means that createrepo_c lib was compiled
with support for generation of Delta RPMS.
"LegacyWeakdeps" which means that createrepo_c was compiled
with support for legacy weakdeps which are (were?) used in
OpenSuse and related distros.

Example string:
"0.10.0 (Features: DeltaRPM )"

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
8 years agoCMake: Add ENABLE_DRPM option
Tomas Mlcoch [Fri, 11 Mar 2016 09:22:18 +0000 (10:22 +0100)]
CMake: Add ENABLE_DRPM option

8 years agoMerge pull request #52 from M0ses/master
Tomas Mlcoch [Thu, 10 Mar 2016 07:31:48 +0000 (08:31 +0100)]
Merge pull request #52 from M0ses/master

tags for old suse versions

8 years agocmake option --enable-legacy-weakdeps to enable old SUSE weaktags
Frank Schreiner [Thu, 3 Mar 2016 15:39:35 +0000 (15:39 +0000)]
cmake option --enable-legacy-weakdeps to enable old SUSE weaktags

8 years agotags for old suse versions
Frank Schreiner [Mon, 29 Feb 2016 20:25:34 +0000 (21:25 +0100)]
tags for old suse versions

8 years agoBump version to 0.10.0
Tomas Mlcoch [Tue, 5 Jan 2016 12:46:28 +0000 (13:46 +0100)]
Bump version to 0.10.0

8 years agoMerge pull request #44 from Conan-Kudo/portable-exit
Tomas Mlcoch [Tue, 5 Jan 2016 12:40:08 +0000 (13:40 +0100)]
Merge pull request #44 from Conan-Kudo/portable-exit

Replace on_exit() call with atexit() call (Fixes FTBFS on Unity Linux)

8 years agoMerge pull request #43 from ralphbean/python3
Tomas Mlcoch [Tue, 5 Jan 2016 12:36:31 +0000 (13:36 +0100)]
Merge pull request #43 from ralphbean/python3

Python3 support (Issue #41 & RhBug: 1024809)

8 years agoReplace on_exit() call with atexit() call
Neal Gompa (ニール・ゴンパ) [Sun, 6 Dec 2015 04:19:26 +0000 (23:19 -0500)]
Replace on_exit() call with atexit() call

The on_exit() function is non-portable and is not available
in all environments (notably Linux environments running on MUSL
and Solaris based environments). Thus, the function call is
swapped for the portable atexit() call.

8 years agoTypofix.
Ralph Bean [Tue, 24 Nov 2015 11:30:50 +0000 (06:30 -0500)]
Typofix.

8 years agoCmake niceties for Python3, like librepo does it.
Ralph Bean [Mon, 23 Nov 2015 19:16:41 +0000 (14:16 -0500)]
Cmake niceties for Python3, like librepo does it.

8 years agoMerge pull request #39 from Conan-Kudo/manpages-fix
Tomas Mlcoch [Mon, 23 Nov 2015 15:44:52 +0000 (16:44 +0100)]
Merge pull request #39 from Conan-Kudo/manpages-fix

Fix manpage generation and install to create and transfer uncompressed man pages

8 years agoUpdate the man pages to match latest release
Neal Gompa (ニール・ゴンパ) [Sun, 8 Nov 2015 16:04:33 +0000 (11:04 -0500)]
Update the man pages to match latest release

8 years agoAdd myself to AUTHORS file.
Ralph Bean [Mon, 16 Nov 2015 15:10:14 +0000 (10:10 -0500)]
Add myself to AUTHORS file.

8 years agoREADME notes on Python3.
Ralph Bean [Mon, 16 Nov 2015 14:28:44 +0000 (09:28 -0500)]
README notes on Python3.

8 years agoMore explicit string type checking.
Ralph Bean [Mon, 16 Nov 2015 14:19:29 +0000 (09:19 -0500)]
More explicit string type checking.

8 years agoMore fixes to the tests.
Ralph Bean [Mon, 16 Nov 2015 04:30:04 +0000 (23:30 -0500)]
More fixes to the tests.

8 years agoActually, let's go with unicode everywhere over bytes.
Ralph Bean [Mon, 16 Nov 2015 04:29:50 +0000 (23:29 -0500)]
Actually, let's go with unicode everywhere over bytes.

8 years agoFix module initialization.
Ralph Bean [Mon, 16 Nov 2015 04:27:17 +0000 (23:27 -0500)]
Fix module initialization.

8 years agoFix PyTypeObject initialization.
Ralph Bean [Mon, 16 Nov 2015 03:51:39 +0000 (22:51 -0500)]
Fix PyTypeObject initialization.

8 years agoTreat strings as explicit byte strings.
Ralph Bean [Mon, 16 Nov 2015 03:51:02 +0000 (22:51 -0500)]
Treat strings as explicit byte strings.

8 years agoMore relative imports.
Ralph Bean [Sun, 15 Nov 2015 23:02:25 +0000 (18:02 -0500)]
More relative imports.

8 years agoHandle floats and ints.
Ralph Bean [Sun, 15 Nov 2015 23:01:49 +0000 (18:01 -0500)]
Handle floats and ints.

8 years agoFix py2/3 compat issues in the acceptance tests.
Ralph Bean [Sun, 15 Nov 2015 22:57:53 +0000 (17:57 -0500)]
Fix py2/3 compat issues in the acceptance tests.

8 years agopy3 syntax error in the test suite.
Ralph Bean [Sat, 14 Nov 2015 15:21:14 +0000 (10:21 -0500)]
py3 syntax error in the test suite.

8 years agoAdjust the build process to be py2/py3 compatible.
Ralph Bean [Sat, 14 Nov 2015 15:21:03 +0000 (10:21 -0500)]
Adjust the build process to be py2/py3 compatible.

8 years agoFix a typo.
Ralph Bean [Sat, 14 Nov 2015 14:30:50 +0000 (09:30 -0500)]
Fix a typo.

8 years agoModify gen_rst.py to indicate --sqliterepo is an option too
Neal Gompa (ニール・ゴンパ) [Sun, 8 Nov 2015 14:20:16 +0000 (09:20 -0500)]
Modify gen_rst.py to indicate --sqliterepo is an option too

8 years agoDo not compress manpages at generation time
Neal Gompa (ニール・ゴンパ) [Sun, 8 Nov 2015 14:18:37 +0000 (09:18 -0500)]
Do not compress manpages at generation time

8 years agoDecompress manpage data
Neal Gompa (ニール・ゴンパ) [Sun, 8 Nov 2015 13:46:26 +0000 (08:46 -0500)]
Decompress manpage data

The manpages get compressed as part of rpmbuild, and compressed
data isn't properly versioned in git

8 years agoBump to 0.9.1
Tomas Mlcoch [Tue, 20 Oct 2015 11:56:20 +0000 (13:56 +0200)]
Bump to 0.9.1

8 years agoRefactoring: Make parse_period_of_time() function static
Tomas Mlcoch [Tue, 20 Oct 2015 11:46:05 +0000 (13:46 +0200)]
Refactoring: Make parse_period_of_time() function static

8 years agoRefactoring: Add cr_ prefix to function hascontrollchars()
Tomas Mlcoch [Tue, 20 Oct 2015 11:24:39 +0000 (13:24 +0200)]
Refactoring: Add cr_ prefix to function hascontrollchars()

hascontrollchars -> cr_hascontrollchars

The prefix was added because the function is exported as a symbol
from libcreaterepo_c shared library.

8 years agoFix double free during parsing broken XML metadata (Issue #33)
Tomas Mlcoch [Thu, 8 Oct 2015 11:30:58 +0000 (13:30 +0200)]
Fix double free during parsing broken XML metadata (Issue #33)

The issue was reported by Rohan McGovern including excelent
reproducer and detail problem analysis.

Rohan's theory that was absolutely right:

When running in single chunk mode, there is one GStringChunk
which belongs to the cr_Metadata. It's temporarily
assigned/unassigned to/from cr_Package objects in newpkgcb/pkgcb
in load_metadata.c.

If XML parsing stops in the middle of a package element,
pkgcb is not called for the last cr_Package, so the chunk
remains assigned to that object.

The chunk is then freed twice, once when the hash table of
packages is destroyed (end of cr_metadata_load_xml function)
and again when the cr_Metadata object is destroyed.

8 years agoTests: Add acceptance test for --general-compress-type option
Tomas Mlcoch [Thu, 8 Oct 2015 09:43:12 +0000 (11:43 +0200)]
Tests: Add acceptance test for --general-compress-type option

Added test_13_createrepo_general_compress_type test

8 years agoFix 'CR_CW_UNKNOWN_COMPRESSION cannot be used' error
Tomas Mlcoch [Thu, 8 Oct 2015 09:34:01 +0000 (11:34 +0200)]
Fix 'CR_CW_UNKNOWN_COMPRESSION cannot be used' error

This is a bug introduced while implementing
--general-compress-type option.

cmd_options->general_compression_type value was used everytime
without regards if it was set or not.

8 years agoRefactoring: Fix compiler warnings
Tomas Mlcoch [Thu, 8 Oct 2015 09:23:57 +0000 (11:23 +0200)]
Refactoring: Fix compiler warnings

1. Fix usage of "const" modifiers to prevent compiler warnings.
2. In cr_prestodelta_thread() use return value from g_slist_append()
   to be sure that we have correct start of the list stored in
   the hash table.
3. Add another comment to cr_dumper_thread() to explicitly
   tell that stuff we are doing there are modifing package
   strucutres and that it's intentional.

8 years agoAdd --general-compress-type option (RhBug 1253850)
Tomas Mlcoch [Wed, 7 Oct 2015 14:45:01 +0000 (16:45 +0200)]
Add --general-compress-type option (RhBug 1253850)

Createrepo_c behaviour is (in most cases) backward compatible
with classical createrepo.
Classical createrepo doesn't provide a possibility to compress
primary, filelists and other xml metadata by different compress
algorithm than GZ.

To be able to enable this feature in createrepo_c, a new option
--general-compress-type was added.

Behaviour of this option is basically same as --compress-type
except that the specified compress type is used also for
the main xml files (primary, filelists, other).

This option has priority over the existing options --compress-type
and --xz.

8 years agoAdd new contriutors into AUTHORS file
Tomas Mlcoch [Tue, 29 Sep 2015 12:54:41 +0000 (14:54 +0200)]
Add new contriutors into AUTHORS file

8 years agoMerge pull request #34 from lmacken/master
Tomas Mlcoch [Tue, 29 Sep 2015 12:43:52 +0000 (14:43 +0200)]
Merge pull request #34 from lmacken/master

updateinfo: Fix a typo in the package release attribute

8 years agoMerge pull request #35 from jaroslawp/master
Tomas Mlcoch [Tue, 29 Sep 2015 12:42:50 +0000 (14:42 +0200)]
Merge pull request #35 from jaroslawp/master

fix traceback on non-complete datetime information (python)

8 years agoEnable drpm support when drpm library is detected on system (RhBug: 1261031) (Issue...
Tomas Mlcoch [Tue, 29 Sep 2015 12:38:05 +0000 (14:38 +0200)]
Enable drpm support when drpm library is detected on system (RhBug: 1261031) (Issue #37)

8 years agofix traceback on non-complete datetime information
Jarek Polok [Thu, 17 Sep 2015 11:37:02 +0000 (13:37 +0200)]
fix traceback on non-complete datetime information