]> git.ipfire.org Git - thirdparty/libsolv.git/log
thirdparty/libsolv.git
3 years agoImprove choice rule generation
Michael Schroeder [Wed, 16 Mar 2022 14:17:20 +0000 (15:17 +0100)] 
Improve choice rule generation

New strategy: take the package update map into account when creating
choice rules. This simplifies the code quite a bit. Also check at
the end of the solving if a choice rule led to two packages providing
the same thing. In that case, break the choice rule and re-run the
solver.

3 years agoAdd more choicerules tests
Michael Schroeder [Wed, 16 Mar 2022 14:16:42 +0000 (15:16 +0100)] 
Add more choicerules tests

3 years agoruntestcases.sh: order the testcases
Michael Schroeder [Thu, 10 Mar 2022 13:23:34 +0000 (14:23 +0100)] 
runtestcases.sh: order the testcases

3 years agoCI: run test in the "build" dir
Michael Schroeder [Mon, 7 Mar 2022 13:44:07 +0000 (14:44 +0100)] 
CI: run test in the "build" dir

3 years agoAdd github CI
Michael Schroeder [Mon, 7 Mar 2022 13:41:51 +0000 (14:41 +0100)] 
Add github CI

3 years agoDo not silently ignore the userdata if it is too big
Michael Schroeder [Thu, 3 Mar 2022 14:43:05 +0000 (15:43 +0100)] 
Do not silently ignore the userdata if it is too big

Instead error out when writing the solv file.

3 years agoFix duplicate line in the choice2.t testcase
Michael Schroeder [Thu, 3 Mar 2022 14:35:39 +0000 (15:35 +0100)] 
Fix duplicate line in the choice2.t testcase

3 years agoSupport dumping of the order edges in testcases
Michael Schroeder [Thu, 3 Mar 2022 14:35:00 +0000 (15:35 +0100)] 
Support dumping of the order edges in testcases

3 years agoStart v5 pubkey support
Michael Schroeder [Thu, 3 Mar 2022 14:28:01 +0000 (15:28 +0100)] 
Start v5 pubkey support

3 years agoSupport SOLVABLE_PREREQ_IGNOREINST in the ordering code
Michael Schroeder [Thu, 3 Mar 2022 13:42:46 +0000 (14:42 +0100)] 
Support SOLVABLE_PREREQ_IGNOREINST in the ordering code

This helps to avoid a couple of dependency cycles.

This commit also fixes the cycle breaking code looking at the
wrong package for uninst->uninst edges.

3 years agoTweak description of rule types in the bindings documentation
Michael Schroeder [Wed, 2 Mar 2022 14:15:13 +0000 (15:15 +0100)] 
Tweak description of rule types in the bindings documentation

3 years agoAdd changes, bump version to 0.7.21 0.7.21
Michael Schroeder [Fri, 25 Feb 2022 16:34:28 +0000 (17:34 +0100)] 
Add changes, bump version to 0.7.21

3 years agosolv format: support storing of package dependencies in a compressed block
Michael Schroeder [Fri, 25 Feb 2022 16:21:17 +0000 (17:21 +0100)] 
solv format: support storing of package dependencies in a compressed block

Using a block enables us to do decent compression, which makes it
possible to retain the original dependency order

I.e. no more REPOKEY_TYPE_REL_IDARRAY hacksA.

Writing this format is currently turned off but will be made the default
after the next release.

3 years agoAdd support for storing user data in a solv file
Michael Schroeder [Fri, 25 Feb 2022 15:47:21 +0000 (16:47 +0100)] 
Add support for storing user data in a solv file

Userdata can be arbritrary (binary)data with a maximum size of
65535 bytes. It can be read without reading the complete
solv file, but do not forget to rewind the fp after reading
the user data.

New functions:
void
    void repowriter_set_userdata(Repowriter *writer, const void *data, int len)
    int solv_read_userdata(FILE *fp, unsigned char **datap, int *lenp)

3 years agoAdd const to the first argument of solv_memdump/solv_memdup2
Michael Schroeder [Fri, 25 Feb 2022 10:39:13 +0000 (11:39 +0100)] 
Add const to the first argument of solv_memdump/solv_memdup2

3 years agoSimplify pool_vendor2mask implementation
Michael Schroeder [Wed, 23 Feb 2022 09:37:28 +0000 (10:37 +0100)] 
Simplify pool_vendor2mask implementation

3 years agotestcase: implement dumping of a configured custom vendorcheck
Michael Schroeder [Tue, 22 Feb 2022 17:07:21 +0000 (18:07 +0100)] 
testcase: implement dumping of a configured custom vendorcheck

This is for libzypp, which uses a custom vendorcheck function.

3 years agoAllow querying of the custom vendor check function
Michael Schroeder [Tue, 22 Feb 2022 17:06:29 +0000 (18:06 +0100)] 
Allow querying of the custom vendor check function

3 years agopoolvendor: fix a NULL pointer reference if more than one vendor class is configured
Michael Schroeder [Tue, 22 Feb 2022 17:05:41 +0000 (18:05 +0100)] 
poolvendor: fix a NULL pointer reference if more than one vendor class is configured

3 years agotestsolv: show an error if the testcase could not be written
Michael Schroeder [Tue, 22 Feb 2022 17:04:30 +0000 (18:04 +0100)] 
testsolv: show an error if the testcase could not be written

3 years agoDo not replace noarch problem rules with arch dependent ones
Michael Schroeder [Wed, 16 Feb 2022 14:40:28 +0000 (15:40 +0100)] 
Do not replace noarch problem rules with arch dependent ones

3 years agoFix to compile
Michael Andres [Fri, 18 Feb 2022 10:59:10 +0000 (11:59 +0100)] 
Fix to compile

3 years agoMerge pull request #491 from wolfv/split_rules_printing
Michael Schroeder [Fri, 18 Feb 2022 09:01:43 +0000 (10:01 +0100)] 
Merge pull request #491 from wolfv/split_rules_printing

split rules number printing into seperate statements

3 years agosplit rules number printing into seperate statements 491/head
Wolf Vollprecht [Fri, 18 Feb 2022 08:27:59 +0000 (09:27 +0100)] 
split rules number printing into seperate statements

3 years agoMerge pull request #488 from niner/patch-1
Michael Schroeder [Wed, 9 Feb 2022 09:01:07 +0000 (10:01 +0100)] 
Merge pull request #488 from niner/patch-1

Fix segfault on conflict resolution when using bindings

3 years agoFix segfault on conflict resolution when using bindings 488/head
niner [Tue, 8 Feb 2022 17:10:54 +0000 (18:10 +0100)] 
Fix segfault on conflict resolution when using bindings

Solutionelement objects were created with a wrong solutionid (i.e. the
solution element id was used for the solutionid field). This led to invalid
array indexes when trying to read the extraflags which then escalated
into a segfault. Fix by setting solutionid correctly in the Solutionelement
constructor.

3 years agoFix split provides not working if the update includes a forbidden vendor change
Michael Schroeder [Tue, 8 Feb 2022 11:41:58 +0000 (12:41 +0100)] 
Fix split provides not working if the update includes a forbidden vendor change

Check the feature rule instead of the update rule and make sure that the
old package really is updated.

3 years agoMerge pull request #486 from kontura/toolversion
Michael Schroeder [Thu, 27 Jan 2022 09:52:46 +0000 (10:52 +0100)] 
Merge pull request #486 from kontura/toolversion

Allow accessing toolversion at runtime and increase it

3 years agoAllow accessing toolversion at runtime and increase it 486/head
Aleš Matěj [Thu, 27 Jan 2022 07:38:27 +0000 (08:38 +0100)] 
Allow accessing toolversion at runtime and increase it

3 years agoRename Iti to Itm while we can.
Michael Schroeder [Tue, 30 Nov 2021 09:42:55 +0000 (10:42 +0100)] 
Rename Iti to Itm while we can.

3 years agoDrop sys/cdefs.h include from qsort_r.c
Michael Schroeder [Tue, 30 Nov 2021 09:40:37 +0000 (10:40 +0100)] 
Drop sys/cdefs.h include from qsort_r.c

The cdefs.h header is not always available, and it gets pulled
in from the stdlib include anyway (at least in openbsd).

3 years agoSupport the install time in the testcase format
Michael Schroeder [Fri, 26 Nov 2021 10:32:37 +0000 (11:32 +0100)] 
Support the install time in the testcase format

3 years agoMerge pull request #477 from lukash/rename-requires
Michael Schroeder [Mon, 29 Nov 2021 11:02:03 +0000 (12:02 +0100)] 
Merge pull request #477 from lukash/rename-requires

Add an ifdef allowing to rename conflicting Solvable::requires

3 years agoSupport dumping of the transaction order in testcases
Michael Schroeder [Fri, 12 Nov 2021 15:52:23 +0000 (16:52 +0100)] 
Support dumping of the transaction order in testcases

3 years agoTry to keep packages from a cycle close togther in the transaction order
Michael Schroeder [Fri, 12 Nov 2021 15:50:33 +0000 (16:50 +0100)] 
Try to keep packages from a cycle close togther in the transaction order

If there are multiple free-to-install packages and we pick a
package from a cycle, we should try to finish the cycle as
fast as possible to keep the time where we have an inconsistent
system as small as possible.

3 years agoAdd an ifdef allowing to rename Solvable dependency members 477/head
Lukáš Hrázký [Fri, 15 Oct 2021 13:51:19 +0000 (15:51 +0200)] 
Add an ifdef allowing to rename Solvable dependency members

In C++20 "requires" is a new keyword, causing a conflict with the
Solvable::requires attribute. From the outside this can only be fixed
with an ugly preprocessor redefinition of the symbol around each libsolv
header include.

This commit adds an #ifdef allowing to rename the dep attributes in case
C++20 or higher is used, which can be easily defined in one place in the
libolv user's build system.

3 years agoSupport zstd compressed control files in debian packages
Michael Schroeder [Mon, 18 Oct 2021 08:53:24 +0000 (10:53 +0200)] 
Support zstd compressed control files in debian packages

3 years agoFinish strict repo priority support
Michael Schroeder [Fri, 15 Oct 2021 09:03:12 +0000 (11:03 +0200)] 
Finish strict repo priority support

- add flag to bindings
- support flag/ruletype in testcases
- support strict repo prio problems in solution generation
- implement automatic disabling of strict repo rules due to install jobs
- add a testcase

3 years agoMerge pull request #459 from adriendelsalle/strict-prio
Michael Schroeder [Fri, 15 Oct 2021 08:17:19 +0000 (10:17 +0200)] 
Merge pull request #459 from adriendelsalle/strict-prio

Implement strict repo priority

3 years agoAdd forgotten bump version line
Michael Schroeder [Mon, 4 Oct 2021 15:55:57 +0000 (17:55 +0200)] 
Add forgotten bump version line

3 years agoMerge pull request #470 from der-gabe/very-minor-doc-improvements
Michael Schroeder [Sat, 25 Sep 2021 21:24:35 +0000 (23:24 +0200)] 
Merge pull request #470 from der-gabe/very-minor-doc-improvements

Very minor doc improvements

3 years agosha2.c: sync _Final function definition with the header file
Michael Schroeder [Sat, 25 Sep 2021 21:19:16 +0000 (23:19 +0200)] 
sha2.c: sync _Final function definition with the header file

Some compilers warn that digest[] is not the same as
digest[SHAXXX_DIGEST_LENGTH].

Fixes issue#464

3 years agoMake repo line parsing not crash if the last argument is missing
Michael Schroeder [Sat, 25 Sep 2021 21:09:44 +0000 (23:09 +0200)] 
Make repo line parsing not crash if the last argument is missing

Fixes issue #473.

3 years agoAdd changes, bump version to 0.7.20 0.7.20
Michael Schroeder [Sat, 25 Sep 2021 20:54:18 +0000 (22:54 +0200)] 
Add changes, bump version to 0.7.20

3 years agoFix misparsing of '&' in attributes with libxml2
Michael Schroeder [Mon, 20 Sep 2021 13:10:38 +0000 (15:10 +0200)] 
Fix misparsing of '&' in attributes with libxml2

For some reason libxml2 insists on re-escaping '&' characters
by substituting them with "&". The rpm dependencies are
stored in attributes, so this is not an academic matter.

Undo the damage done by libxml2 by replacing all & occurences
by a single '&'.

3 years agoChoice rules: treat orphaned packages as newest
Michael Schroeder [Wed, 15 Sep 2021 14:58:41 +0000 (16:58 +0200)] 
Choice rules: treat orphaned packages as newest

Otherwise, they likely get deinstalled when the choice rule
cannot be met.

3 years agoMerge pull request #454 from j-mracek/weak-excludes
Michael Schroeder [Thu, 2 Sep 2021 14:14:38 +0000 (16:14 +0200)] 
Merge pull request #454 from j-mracek/weak-excludes

Add mechanisms to ignore pkgs for weak dependencies

3 years agoAdd mechanisms to ignore pkgs for weak dependencies 454/head
Jaroslav Mracek [Tue, 22 Jun 2021 14:30:45 +0000 (16:30 +0200)] 
Add mechanisms to ignore pkgs for weak dependencies

It adds mechanism to avoid installation of certain packages
to satisfy recommends and supplemented.

3 years agodo not clear providers of a name having a different name 459/head
Adrien DELSALLE [Mon, 9 Aug 2021 11:20:03 +0000 (13:20 +0200)] 
do not clear providers of a name having a different name
it would prevent those solvables for being excluded by strict channel priority

3 years agoimplement strict repo priority
Adrien DELSALLE [Tue, 6 Jul 2021 16:46:52 +0000 (18:46 +0200)] 
implement strict repo priority
add specific rule
add solver flag
add problem message/debug

3 years agoMention Tcl support in description 470/head
Gabriel Niebler [Mon, 9 Aug 2021 12:06:18 +0000 (14:06 +0200)] 
Mention Tcl support in description

3 years agoFix typos
Gabriel Niebler [Mon, 9 Aug 2021 11:16:19 +0000 (13:16 +0200)] 
Fix typos

3 years agoFix grammar
Gabriel Niebler [Mon, 9 Aug 2021 11:12:16 +0000 (13:12 +0200)] 
Fix grammar

3 years agoFix typo in libsolv.txt
Gabriel Niebler [Mon, 9 Aug 2021 11:06:27 +0000 (13:06 +0200)] 
Fix typo in libsolv.txt

3 years agoMerge pull request #468 from pkratoch/environments
Michael Schroeder [Fri, 6 Aug 2021 15:33:48 +0000 (17:33 +0200)] 
Merge pull request #468 from pkratoch/environments

Add support for environments in comps xml

4 years agoAdd support for environments in comps xml 468/head
Pavla Kratochvilova [Thu, 1 Jul 2021 11:32:52 +0000 (13:32 +0200)] 
Add support for environments in comps xml

4 years agoMerge pull request #466 from DimStar77/TW_sans_py2
Michael Schroeder [Fri, 30 Jul 2021 14:09:37 +0000 (16:09 +0200)] 
Merge pull request #466 from DimStar77/TW_sans_py2

Build without python2 support on suse_version >= 1550 by default

4 years agoBuild without python2 support on suse_version >= 1550 by default 466/head
Dominique Leuenberger [Fri, 30 Jul 2021 11:56:33 +0000 (13:56 +0200)] 
Build without python2 support on suse_version >= 1550 by default

4 years agoMerge pull request #462 from ignatenkobrain/pyssize_t
Michael Schroeder [Mon, 19 Jul 2021 08:59:05 +0000 (10:59 +0200)] 
Merge pull request #462 from ignatenkobrain/pyssize_t

Fix compatibility with Python 3.10

4 years agoFix compatibility with Python 3.10 462/head
Igor Raits [Sun, 18 Jul 2021 16:47:05 +0000 (18:47 +0200)] 
Fix compatibility with Python 3.10

Fixes: https://github.com/openSUSE/libsolv/issues/461
Signed-off-by: Igor Raits <igor.raits@gmail.com>
4 years agoMerge pull request #460 from wolfv/memcpy_to_memmove
Michael Schroeder [Thu, 8 Jul 2021 07:50:50 +0000 (09:50 +0200)] 
Merge pull request #460 from wolfv/memcpy_to_memmove

use memmove for overlapping regions

4 years agouse memmove for overlapping regions 460/head
Wolf Vollprecht [Thu, 8 Jul 2021 07:13:19 +0000 (09:13 +0200)] 
use memmove for overlapping regions

4 years agoRead/write conda track features in testcases
Michael Schroeder [Mon, 28 Jun 2021 09:58:28 +0000 (11:58 +0200)] 
Read/write conda track features in testcases

Should have been in commit c7d13d05a587cec227fa22cc8e4b403e85b778c6

4 years agoMerge pull request #445 from jrohel/fix/memleak_in_swig_python_wrapper
Michael Schroeder [Thu, 8 Apr 2021 14:31:48 +0000 (16:31 +0200)] 
Merge pull request #445 from jrohel/fix/memleak_in_swig_python_wrapper

Fix: Memory leaks in SWIG generated code (for Python)

4 years agoFix: Memory leaks in SWIG generated code (for Python) 445/head
Jaroslav Rohel [Thu, 8 Apr 2021 10:17:09 +0000 (12:17 +0200)] 
Fix: Memory leaks in SWIG generated code (for Python)

There were memory leaks in the `Chksum_from_bin`, `Chksum_add`,
`SolvFp_write` functions wrapper for Python.

The problem was in "freearg" typemap argument defined in "solv.i".
Therefore, the typemap was not applied.

4 years agoAdd changes, bump version to 0.7.19 0.7.19
Michael Schroeder [Wed, 7 Apr 2021 12:57:00 +0000 (14:57 +0200)] 
Add changes, bump version to 0.7.19

4 years agoMake zchunkopen a bit easier to understand
Michael Schroeder [Tue, 6 Apr 2021 14:01:29 +0000 (16:01 +0200)] 
Make zchunkopen a bit easier to understand

4 years agoMerge pull request #444 from jrohel/fix/resources_in_xxopen
Michael Schroeder [Tue, 6 Apr 2021 13:54:16 +0000 (15:54 +0200)] 
Merge pull request #444 from jrohel/fix/resources_in_xxopen

Fix: lzopen, zstdopen, zchunkopen

4 years agoFix: zchunkopen: resources leaks, don't close supplied fd 444/head
Jaroslav Rohel [Tue, 30 Mar 2021 06:42:31 +0000 (08:42 +0200)] 
Fix: zchunkopen: resources leaks, don't close supplied fd

System variant:
- resource leaks when `zck_init_read` or `zck_init_write` fails
- supplied fd will be closed if `zck_create` fails

Libsolv limited zchunk implementation:
- resource leak when `strcmp(mode, "r") != 0`
- supplied fd will be closed if `solv_zchunk_open` fails (Fix is thread
  unsafe. However the original version caused a double-close in the caller
  function and was thread unsafe too.)

4 years agoFix: lzopen and zstdopen: don't close supplied fd
Jaroslav Rohel [Mon, 29 Mar 2021 15:16:54 +0000 (17:16 +0200)] 
Fix: lzopen and zstdopen: don't close supplied fd

In the case of failure of some functions, the `fp` file stream has been
closed. And the stream closed the associated supplied `fd` file descriptor.

The caller then closed the closed descriptor again (eg `curlfopen` in
`repoinfo_download.c`: `if (!Fp) close (fd);`) -> double_close.
In multithreaded software risk of race conditions. Another thread open
another file and reuse just closed file descriptor. The caller
then closes the file of another thread.

4 years agoFix: Use "solv_free" for memory allocated by "solv_calloc"
Jaroslav Rohel [Tue, 6 Apr 2021 07:17:27 +0000 (09:17 +0200)] 
Fix: Use "solv_free" for memory allocated by "solv_calloc"

4 years agoChange calloc/realloc calls to solv_calloc/solv_realloc
Michael Schroeder [Wed, 31 Mar 2021 11:46:16 +0000 (13:46 +0200)] 
Change calloc/realloc calls to solv_calloc/solv_realloc

Spotted by Jaroslav Rohel, thanks!

4 years agoMerge pull request #443 from tl-hbk/fix_resolve_jobrules_segfault
Michael Schroeder [Wed, 31 Mar 2021 11:39:57 +0000 (13:39 +0200)] 
Merge pull request #443 from tl-hbk/fix_resolve_jobrules_segfault

Fix segfault in resolve_jobrules

4 years agoFix segfault in resolve_jobrules 443/head
Thomas Lam [Tue, 30 Mar 2021 12:33:52 +0000 (05:33 -0700)] 
Fix segfault in resolve_jobrules

In selectandinstall sometimes rules are added and a realloc is required if there's
no more memory available in the allocated block.  r-- would just decrement the old
pointer but the realloc could return a completely different block of memory

4 years agotweak last commit
Michael Schroeder [Mon, 29 Mar 2021 13:07:55 +0000 (15:07 +0200)] 
tweak last commit

4 years agoMerge pull request #442 from jrohel/fix/memory_leaks
Michael Schroeder [Mon, 29 Mar 2021 13:06:44 +0000 (15:06 +0200)] 
Merge pull request #442 from jrohel/fix/memory_leaks

Fix memory leaks

4 years agoFix memory leaks 442/head
Jaroslav Rohel [Mon, 29 Mar 2021 10:46:31 +0000 (12:46 +0200)] 
Fix memory leaks

4 years agoAdd changes, bump version to 0.7.18 0.7.18
Michael Schroeder [Fri, 26 Mar 2021 13:18:57 +0000 (14:18 +0100)] 
Add changes, bump version to 0.7.18

4 years agoMerge pull request #438 from tl-hbk/fix_align
Michael Schroeder [Fri, 19 Mar 2021 15:06:54 +0000 (16:06 +0100)] 
Merge pull request #438 from tl-hbk/fix_align

Update long usage in regex polyfill

4 years agoUpdate long usage in regex polyfill 438/head
Thomas Lam [Thu, 18 Mar 2021 13:18:21 +0000 (08:18 -0500)] 
Update long usage in regex polyfill

4 years agoMerge pull request #414 from dthadi3/ppc64le
Michael Schroeder [Thu, 18 Mar 2021 12:16:28 +0000 (13:16 +0100)] 
Merge pull request #414 from dthadi3/ppc64le

Travis-ci: added support for ppc64le

4 years agoMerge pull request #439 from kontura/memleak
Michael Schroeder [Thu, 18 Mar 2021 12:15:31 +0000 (13:15 +0100)] 
Merge pull request #439 from kontura/memleak

Fix memory leak of solv->choicerules_info

4 years agoRemove bogus allocation of solv->choicerules_info 439/head
Aleš Matěj [Thu, 11 Mar 2021 08:11:12 +0000 (09:11 +0100)] 
Remove bogus allocation of solv->choicerules_info

It was leaking memory.

4 years agoMerge pull request #436 from tl-hbk/fix_win32_regex
Michael Schroeder [Mon, 8 Mar 2021 14:37:04 +0000 (15:37 +0100)] 
Merge pull request #436 from tl-hbk/fix_win32_regex

Fix regex bug on windows

4 years agoFix regex bug on windows 436/head
Thomas Lam [Mon, 8 Mar 2021 14:04:33 +0000 (08:04 -0600)] 
Fix regex bug on windows

https://github.com/ifduyue/musl/blob/a5aff1972c9e3981566414b09a28e331ccd2be5d/include/alltypes.h.in#L10
https://github.com/ifduyue/musl/blob/a5aff1972c9e3981566414b09a28e331ccd2be5d/arch/x86_64/bits/alltypes.h.in#L1

4 years agoMerge pull request #434 from tl-hbk/use_only_tar_bz2
Michael Schroeder [Tue, 2 Mar 2021 13:47:37 +0000 (14:47 +0100)] 
Merge pull request #434 from tl-hbk/use_only_tar_bz2

Add flag to skip conda v2 packages when parsing conda repos

4 years agoUpdate flag because first 8 bits are reserved 434/head
Thomas Lam [Mon, 1 Mar 2021 16:16:42 +0000 (10:16 -0600)] 
Update flag because first 8 bits are reserved

4 years agoAdd flag to skip conda v2 packages when parsing conda repos
Thomas Lam [Mon, 1 Mar 2021 15:48:03 +0000 (09:48 -0600)] 
Add flag to skip conda v2 packages when parsing conda repos

4 years agoAdd changes, bump version to 0.7.17 0.7.17
Michael Schroeder [Tue, 19 Jan 2021 14:10:21 +0000 (15:10 +0100)] 
Add changes, bump version to 0.7.17

4 years agoTweak default/visible handling in comps parser
Michael Schroeder [Tue, 19 Jan 2021 13:58:25 +0000 (14:58 +0100)] 
Tweak default/visible handling in comps parser

4 years agoMerge pull request #409 from pkratoch/comps-parsing
Michael Schroeder [Tue, 19 Jan 2021 13:39:37 +0000 (14:39 +0100)] 
Merge pull request #409 from pkratoch/comps-parsing

Parsing comps - add default, langonly and parse boolean values

4 years agotestcase_read: error out if repos are added or the system is changed too late
Michael Schroeder [Mon, 14 Dec 2020 10:12:00 +0000 (11:12 +0100)] 
testcase_read: error out if repos are added or the system is changed too late

We must not add new solvables after the considered map was created, the solver
was created, or jobs were added. We may not changed the system after jobs have
been added.

(Jobs may point inside the whatproviedes array, so we must not invalidate this
area.)

4 years agoReally add code to set dbpath in rpmdb2solv
Michael Schroeder [Thu, 10 Dec 2020 15:39:50 +0000 (16:39 +0100)] 
Really add code to set dbpath in rpmdb2solv

Should have been in commit f74c5b79c2bc88c8c6067b64fb9c6beb2330ae33

4 years agoAdd _db_backend workaround for rpm-4.16.0
Michael Schroeder [Thu, 10 Dec 2020 15:37:26 +0000 (16:37 +0100)] 
Add _db_backend workaround for rpm-4.16.0

Rpm 4.16.0 cannot read the database if _db_config is not set.

4 years agoTravis-ci: added support for ppc64le 414/head
Devendranath Thadi [Tue, 24 Nov 2020 08:22:20 +0000 (08:22 +0000)] 
Travis-ci: added support for ppc64le

4 years agoSupport to set the dbpath in rpmdb2solv
Michael Schroeder [Wed, 18 Nov 2020 12:13:08 +0000 (13:13 +0100)] 
Support to set the dbpath in rpmdb2solv

4 years agoMake use of the %_dbpath macro if it is set
Michael Schroeder [Wed, 18 Nov 2020 12:09:36 +0000 (13:09 +0100)] 
Make use of the %_dbpath macro if it is set

4 years agoParse boolean values in comps xml 409/head
Pavla Kratochvilova [Thu, 12 Nov 2020 07:50:28 +0000 (08:50 +0100)] 
Parse boolean values in comps xml

Before this change, the resulting value was true if the attribute was
present, false otherwise. After this change, the resulting value is
true if the attribute value is "true", false if "false" and default
value otherwise. This is the same how libcomps parses the comps xml.

4 years agoProperly escape preprocessor directives
Michael Schroeder [Mon, 16 Nov 2020 14:11:14 +0000 (15:11 +0100)] 
Properly escape preprocessor directives

Otherwise swig will process them instead of the compiler

Should have been in commit 170f8550b89c6c9e61b40e782cd75148825c2e89

4 years agoUse PyBytes_AsStringAndSize() instead of PyObject_AsReadBuffer() for python3
Michael Schroeder [Mon, 16 Nov 2020 12:45:13 +0000 (13:45 +0100)] 
Use PyBytes_AsStringAndSize() instead of PyObject_AsReadBuffer() for python3

PyObject_AsReadBuffer was deprecated since python-3.0 and has
now been removed in python-3.10.

Fixes issue #410