biao716.wang [Mon, 25 Nov 2019 02:27:50 +0000 (10:27 +0800)]
fix pylint error for createrepo_c
Change-Id: I7936d9ed28608be9e682b13f59c3bb75f08654a5
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
maoxiaojuan [Mon, 11 Mar 2019 07:47:18 +0000 (15:47 +0800)]
Merge branch 'master' into devel
Change-Id: I085b912fdf9f85cb792af2457354ebcabcf25093
Chunhua Liu [Mon, 18 Feb 2019 02:48:10 +0000 (02:48 +0000)]
Merge "remove filter function cr_is_primary to keep the same behavior as createrepo." into devel
biao716.wang [Fri, 9 Nov 2018 09:12:05 +0000 (17:12 +0800)]
remove filter function cr_is_primary to keep the same behavior as createrepo.
Change-Id: Idecd3496c1d35d6d411ffd82acdd4649814dad13
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
Liu Chunhua [Wed, 30 Jan 2019 01:16:13 +0000 (01:16 +0000)]
Merge "add dependence libcurl4 lib for unbuntu:18.04" into devel
biao716.wang [Fri, 9 Nov 2018 09:12:05 +0000 (17:12 +0800)]
remove filter function cr_is_primary to keep the same behavior as createrepo.
Change-Id: Idecd3496c1d35d6d411ffd82acdd4649814dad13
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
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
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>
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>
fushuai [Wed, 27 Sep 2017 06:52:14 +0000 (14:52 +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: Ie0ce9901e39cd8f02513995bf92c803d96df981a
fushuai [Wed, 27 Sep 2017 06:47:12 +0000 (14:47 +0800)]
fix prerevew test "test_createrepo_compactive" error, not found createrepo.
delete repowithbadpackages case because of createrepo not support.
Change-Id: I951cd96d86b0a07f08d54d18d05a0e1fd2680e1a
Signed-off-by: fushuai <shuai01.fu@samsung.com>
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>
SoonKyu Park [Sat, 25 Mar 2017 02:13:37 +0000 (11:13 +0900)]
Release 0.10.1
Change-Id: Ic26437d8fe725d3a175d262a4644affb930734e7
SoonKyu Park [Tue, 28 Mar 2017 07:42:20 +0000 (16:42 +0900)]
Add dependency on libglib2 in control file
Change-Id: If50a2e82fbc4bcca96e753d2bfc22f5e449f0d93
SoonKyu Park [Tue, 28 Mar 2017 05:55:33 +0000 (14:55 +0900)]
fix build error for ubuntu
Change-Id: I87a9e1b07c7dd545f01354cbc29966ce8dfd50d9
SoonKyu Park [Sat, 25 Mar 2017 02:46:39 +0000 (11:46 +0900)]
Fix build error
Add %{_bindir}/sqliterepo_c
Change-Id: Id2b6c38e1040732975ff014cb29d77e6eafb3818
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
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
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
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
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>
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>
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>
Tomas Mlcoch [Thu, 23 Feb 2017 14:49:22 +0000 (15:49 +0100)]
Doc: Update man pages
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.
Tomas Mlcoch [Tue, 31 Jan 2017 09:07:14 +0000 (10:07 +0100)]
updaterecord-py.c: Fix SIGSEGV during date-time parsing (#72)
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)
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
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
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
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
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
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>
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>
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>
Tomas Mlcoch [Thu, 8 Sep 2016 07:48:18 +0000 (09:48 +0200)]
Update cleanup script to remove also packages for Python 3
Tomas Mlcoch [Thu, 8 Sep 2016 07:45:38 +0000 (09:45 +0200)]
cr_lock_repo: Fix double free (RhBz: 1355720)
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
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
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
Frank Schreiner [Thu, 14 Apr 2016 10:19:18 +0000 (12:19 +0200)]
added switch to turn of python support
Tomas Mlcoch [Mon, 11 Apr 2016 10:08:01 +0000 (12:08 +0200)]
Update AUTHORS
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
Tomas Mlcoch [Mon, 11 Apr 2016 08:56:50 +0000 (10:56 +0200)]
Refactor --split option
Frank Schreiner [Wed, 6 Apr 2016 23:03:39 +0000 (23:03 +0000)]
just cleanup to be closer to original code
Frank Schreiner [Wed, 6 Apr 2016 22:38:41 +0000 (22:38 +0000)]
optimized memory usage
Frank Schreiner [Tue, 5 Apr 2016 16:39:01 +0000 (16:39 +0000)]
fixed memory leaks while '--update'
Frank Schreiner [Tue, 5 Apr 2016 14:47:29 +0000 (14:47 +0000)]
fixed problem with baseurl while '--update'
Frank Schreiner [Mon, 4 Apr 2016 20:41:32 +0000 (20:41 +0000)]
check given directories in split mode
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
Frank Schreiner [Fri, 1 Apr 2016 07:14:26 +0000 (07:14 +0000)]
changed order of arguments for load_rpm (err last arg now)
Frank Schreiner [Thu, 31 Mar 2016 04:30:03 +0000 (06:30 +0200)]
cli options description now match man page description
Frank Schreiner [Wed, 30 Mar 2016 13:50:36 +0000 (15:50 +0200)]
fixed option description and added split option to man page
Sten Spans [Thu, 24 Mar 2016 09:47:16 +0000 (10:47 +0100)]
Update mergerepo_c.c
Frank Schreiner [Thu, 24 Mar 2016 09:22:22 +0000 (09:22 +0000)]
fixed size of minimal string while checking base url
Frank Schreiner [Tue, 22 Mar 2016 16:47:49 +0000 (16:47 +0000)]
added patch from mls
Frank Schreiner [Fri, 18 Mar 2016 06:32:20 +0000 (06:32 +0000)]
location_base now set to 'media://' if no -u option set
Frank Schreiner [Wed, 16 Mar 2016 22:10:47 +0000 (22:10 +0000)]
made handling of media:// similar to python version
Frank Schreiner [Wed, 16 Mar 2016 20:15:28 +0000 (20:15 +0000)]
improved handling of package_count - working with pointer now
Frank Schreiner [Wed, 16 Mar 2016 13:44:57 +0000 (13:44 +0000)]
cleanup
Frank Schreiner [Wed, 16 Mar 2016 13:30:54 +0000 (13:30 +0000)]
added media_id and unique package_count
Frank Schreiner [Tue, 15 Mar 2016 14:08:28 +0000 (14:08 +0000)]
included loop
Frank Schreiner [Tue, 15 Mar 2016 10:49:04 +0000 (10:49 +0000)]
added '--split' to command line options
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>
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>
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>
Tomas Mlcoch [Fri, 11 Mar 2016 09:22:18 +0000 (10:22 +0100)]
CMake: Add ENABLE_DRPM option
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
Frank Schreiner [Thu, 3 Mar 2016 15:39:35 +0000 (15:39 +0000)]
cmake option --enable-legacy-weakdeps to enable old SUSE weaktags
Frank Schreiner [Mon, 29 Feb 2016 20:25:34 +0000 (21:25 +0100)]
tags for old suse versions
Tomas Mlcoch [Tue, 5 Jan 2016 12:46:28 +0000 (13:46 +0100)]
Bump version to 0.10.0
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)
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)
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.
Ralph Bean [Tue, 24 Nov 2015 11:30:50 +0000 (06:30 -0500)]
Typofix.
Ralph Bean [Mon, 23 Nov 2015 19:16:41 +0000 (14:16 -0500)]
Cmake niceties for Python3, like librepo does it.
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
Neal Gompa (ニール・ゴンパ) [Sun, 8 Nov 2015 16:04:33 +0000 (11:04 -0500)]
Update the man pages to match latest release
Ralph Bean [Mon, 16 Nov 2015 15:10:14 +0000 (10:10 -0500)]
Add myself to AUTHORS file.
Ralph Bean [Mon, 16 Nov 2015 14:28:44 +0000 (09:28 -0500)]
README notes on Python3.
Ralph Bean [Mon, 16 Nov 2015 14:19:29 +0000 (09:19 -0500)]
More explicit string type checking.
Ralph Bean [Mon, 16 Nov 2015 04:30:04 +0000 (23:30 -0500)]
More fixes to the tests.
Ralph Bean [Mon, 16 Nov 2015 04:29:50 +0000 (23:29 -0500)]
Actually, let's go with unicode everywhere over bytes.
Ralph Bean [Mon, 16 Nov 2015 04:27:17 +0000 (23:27 -0500)]
Fix module initialization.
Ralph Bean [Mon, 16 Nov 2015 03:51:39 +0000 (22:51 -0500)]
Fix PyTypeObject initialization.
Ralph Bean [Mon, 16 Nov 2015 03:51:02 +0000 (22:51 -0500)]
Treat strings as explicit byte strings.
Ralph Bean [Sun, 15 Nov 2015 23:02:25 +0000 (18:02 -0500)]
More relative imports.
Ralph Bean [Sun, 15 Nov 2015 23:01:49 +0000 (18:01 -0500)]
Handle floats and ints.
Ralph Bean [Sun, 15 Nov 2015 22:57:53 +0000 (17:57 -0500)]
Fix py2/3 compat issues in the acceptance tests.
Ralph Bean [Sat, 14 Nov 2015 15:21:14 +0000 (10:21 -0500)]
py3 syntax error in the test suite.
Ralph Bean [Sat, 14 Nov 2015 15:21:03 +0000 (10:21 -0500)]
Adjust the build process to be py2/py3 compatible.
Ralph Bean [Sat, 14 Nov 2015 14:30:50 +0000 (09:30 -0500)]
Fix a typo.
Neal Gompa (ニール・ゴンパ) [Sun, 8 Nov 2015 14:20:16 +0000 (09:20 -0500)]
Modify gen_rst.py to indicate --sqliterepo is an option too
Neal Gompa (ニール・ゴンパ) [Sun, 8 Nov 2015 14:18:37 +0000 (09:18 -0500)]
Do not compress manpages at generation time
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
Tomas Mlcoch [Tue, 20 Oct 2015 11:56:20 +0000 (13:56 +0200)]
Bump to 0.9.1
Tomas Mlcoch [Tue, 20 Oct 2015 11:46:05 +0000 (13:46 +0200)]
Refactoring: Make parse_period_of_time() function static
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.