]>
git.ipfire.org Git - thirdparty/libsolv.git/log
Jaroslav Mracek [Tue, 10 Apr 2018 10:47:18 +0000 (12:47 +0200)]
Add const for second variable
The second variable is used as a source for copy and it is not modified
therefore it should be marked as s const. Then it is more easy to identify what
is source and what is target and also it is clear that the source variable will
be not modify by the function.
Additionally it allows to use const map or queue to create a copy or other
operations.
Michael Schroeder [Fri, 23 Mar 2018 11:04:14 +0000 (12:04 +0100)]
Add changes, bump version to 0.6.34
Michael Schroeder [Fri, 23 Mar 2018 11:00:00 +0000 (12:00 +0100)]
Make sure the product file comes from /etc/products.d for the fallback product search
Michael Schroeder [Thu, 1 Mar 2018 10:00:00 +0000 (11:00 +0100)]
Also use suggests for ordering packages
Michael Schroeder [Wed, 28 Feb 2018 15:31:35 +0000 (16:31 +0100)]
Add changes, bump version to 0.6.33
Michael Schroeder [Wed, 28 Feb 2018 15:26:21 +0000 (16:26 +0100)]
Fix Selection.clone implementation and documentation
Michael Schroeder [Wed, 28 Feb 2018 15:13:19 +0000 (16:13 +0100)]
Use %license instead of %doc for the license
Michael Schroeder [Wed, 28 Feb 2018 14:59:29 +0000 (15:59 +0100)]
Merge pull request #257 from ignatenkobrain/seleciton-clone
bindings: use $self for Selection.clone()
Michael Schroeder [Tue, 27 Feb 2018 14:00:31 +0000 (15:00 +0100)]
Fix saving of branches when refining problems
This bug caused a mem-leak which led to its discovery...
Igor Gnatenko [Mon, 26 Feb 2018 14:15:05 +0000 (15:15 +0100)]
bindings: use $self for Selection.clone()
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Michael Schroeder [Mon, 26 Feb 2018 14:27:24 +0000 (15:27 +0100)]
Fix parserpmrichdep conditional
Michael Schroeder [Mon, 26 Feb 2018 14:24:32 +0000 (15:24 +0100)]
Merge pull request #256 from ignatenkobrain/python-rich
bindings: expose parserpmrichdep()
Igor Gnatenko [Sun, 25 Feb 2018 16:10:10 +0000 (17:10 +0100)]
bindings: expose parserpmrichdep()
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Michael Schroeder [Mon, 19 Feb 2018 10:51:44 +0000 (11:51 +0100)]
Work around rpm bug if HEADERIMPORT_FAST is used
With HEADERIMPORT_FAST, rpm uses the difference between offsets
to determine the entry length. Unfortunately, the length is
used as entry count for RPM_BIN_TYPE, so the cound may end up
to big. So trim it again to match the md5 length.
Thanks to Oleg Girko <ol@infoserver.lv> for investigating this.
Michael Schroeder [Thu, 15 Feb 2018 16:21:55 +0000 (17:21 +0100)]
Fix changes
Michael Schroeder [Tue, 13 Feb 2018 10:52:33 +0000 (11:52 +0100)]
Add changes, bump version to 0.6.32
Michael Schroeder [Mon, 12 Feb 2018 14:06:10 +0000 (15:06 +0100)]
Rework fetch phase in fileconflict handling
We now handle all files of one package in one go instead of
iterating over every file. In most cases this does not make
a difference, as the pruned candidate list is very small. But
it can be big if two packages with the same content get
installed, e.g. two kernels with same version but different
rebuild count.
Michael Schroeder [Mon, 12 Feb 2018 13:59:14 +0000 (14:59 +0100)]
Improve file conflict output in example solver
Michael Schroeder [Thu, 8 Feb 2018 15:46:05 +0000 (16:46 +0100)]
fileconflicts: make sure at least one candidate is a new install
No need to get only installed packages.
Michael Schroeder [Wed, 31 Jan 2018 15:35:33 +0000 (16:35 +0100)]
Remove solver_disableproblem and solver_enableproblem
They are internal to the solver and can't be used from
outside. Seems they were added to the libsolv.ver map by
accident.
Michael Schroeder [Wed, 31 Jan 2018 10:43:15 +0000 (11:43 +0100)]
Add changes, bump version to 0.6.31
Michael Schroeder [Wed, 31 Jan 2018 10:29:19 +0000 (11:29 +0100)]
Move new functions into SOLV_1.2 section
Michael Schroeder [Wed, 31 Jan 2018 10:14:23 +0000 (11:14 +0100)]
Use exact size types in header access functions
This matters for ENABLE_RPMPKG_LIBRPM, as we must match what
librpm returns.
Michael Schroeder [Tue, 30 Jan 2018 14:05:36 +0000 (15:05 +0100)]
Fix comment
Michael Schroeder [Tue, 30 Jan 2018 13:48:40 +0000 (14:48 +0100)]
Make serialize_dbenv_ops static
Michael Schroeder [Tue, 30 Jan 2018 13:28:28 +0000 (14:28 +0100)]
Some more code cleanup
Michael Schroeder [Tue, 30 Jan 2018 12:57:00 +0000 (13:57 +0100)]
Allow pool_error to be called with no pool
In that case we just return with the specified value and
don't log anything.
Michael Schroeder [Tue, 30 Jan 2018 12:55:37 +0000 (13:55 +0100)]
Move database functions in header files
I'm not completely happy with the result, but it's already
much nicer than before. And we can also habe repo_rpmdb_lmdb.h
if we must...
Michael Schroeder [Tue, 30 Jan 2018 10:50:56 +0000 (11:50 +0100)]
Also use headread if RPMPKG_LIBRPM is not defined
Michael Schroeder [Tue, 30 Jan 2018 09:48:20 +0000 (10:48 +0100)]
Fix memory leaks in LIBRPM code
Michael Schroeder [Tue, 30 Jan 2018 09:20:26 +0000 (10:20 +0100)]
Fix _dbpath macro definition
The rootdir must come after _dbpath...
Michael Schroeder [Mon, 29 Jan 2018 16:05:49 +0000 (17:05 +0100)]
Add ENABLE_RPMDB_LIBRPM and ENABLE_RPMPKG_LIBRPM options
Those two control if librpm should be used to read headers
from the rpm database and to get information from the headers.
They are currently a bit experimental, so use at your own risk.
This is based on patches from Florian Festi and Panu Matilainen.
Thanks!
Michael Schroeder [Thu, 18 Jan 2018 12:22:36 +0000 (13:22 +0100)]
Add pool_set_whatprovides function
Set an entry in the whatprovides table. Also make the pool methods
set_namespaceproviders and flush_namespaceproviders available in
the bindings.
Michael Schroeder [Thu, 18 Jan 2018 12:20:24 +0000 (13:20 +0100)]
Add map_clr_at and MAPCLR_AT
Clear some bits around the specified bit.
Michael Schroeder [Thu, 11 Jan 2018 14:51:42 +0000 (15:51 +0100)]
testcase_add_testtags: make sure that we have a solvable when adding data
Michael Schroeder [Fri, 5 Jan 2018 14:28:45 +0000 (15:28 +0100)]
Fix last commit when the involvedmap has a zero size
Michael Schroeder [Fri, 5 Jan 2018 14:15:51 +0000 (15:15 +0100)]
Set dup updaters when creating the dup maps
We used to do this when creating the dup rules. But that
means the update information is not available when creating
the update rules which results in no special update data
being saved. Fixes bnc#
1074207 .
Michael Schroeder [Wed, 20 Dec 2017 11:55:25 +0000 (12:55 +0100)]
Merge pull request #248 from termim/zlib-typo
fix typo
Mikhail Terekhov [Wed, 20 Dec 2017 03:17:19 +0000 (22:17 -0500)]
fix typo
Michael Schroeder [Mon, 20 Nov 2017 14:15:23 +0000 (15:15 +0100)]
Fix selection_canon when there's a zero epoch provided
Also add tests.
Michael Schroeder [Mon, 20 Nov 2017 12:34:13 +0000 (13:34 +0100)]
Add SELECTION_FILTER_SWAPPED support
Michael Schroeder [Sat, 18 Nov 2017 21:36:44 +0000 (22:36 +0100)]
Remove no longer needed code
Michael Schroeder [Sat, 18 Nov 2017 21:28:00 +0000 (22:28 +0100)]
Rework selection code
Now a bit faster and with less bugs in disabled/badarch matching.
Michael Schroeder [Sat, 18 Nov 2017 21:27:22 +0000 (22:27 +0100)]
Add more name/provides tests, test filelist matching
Michael Schroeder [Thu, 16 Nov 2017 13:22:42 +0000 (14:22 +0100)]
Update selection documentation
Michael Schroeder [Thu, 16 Nov 2017 13:21:15 +0000 (14:21 +0100)]
Default to SELECTION_FILTER | SELECTION_WITH_ALL when no combination mode is provided
Michael Schroeder [Thu, 16 Nov 2017 13:20:33 +0000 (14:20 +0100)]
Special case marchdeps filtering on a repo or all packages.
Michael Schroeder [Thu, 16 Nov 2017 13:18:27 +0000 (14:18 +0100)]
Simplify code a bit
Michael Schroeder [Thu, 16 Nov 2017 10:51:13 +0000 (11:51 +0100)]
Remove duplicated code
Michael Schroeder [Thu, 16 Nov 2017 10:50:57 +0000 (11:50 +0100)]
Add selection testcases
Michael Schroeder [Thu, 16 Nov 2017 09:53:06 +0000 (10:53 +0100)]
Remove auto-adding of SELECTION_REL in selection_make_matchdeps
While this is strictly speaking a change in the API, I consider
it more like a bug fix. Nobody seems to be using selection_make_matchdeps
in production code yet, so I guess the change is ok.
Michael Schroeder [Wed, 15 Nov 2017 15:14:45 +0000 (16:14 +0100)]
repo_rpmdb: retry with DB_PRIVATE if dbenv open fails with DB_VERSION_MISMATCH
This is also what rpm does, see rpm commit
2822ccbcdf3e898b960fafb23c4d571e26cef0a4
Michael Schroeder [Wed, 15 Nov 2017 14:14:20 +0000 (15:14 +0100)]
bindings: add a selection clone method
Michael Schroeder [Wed, 15 Nov 2017 14:13:23 +0000 (15:13 +0100)]
Fix provides matching with badarch/disabled packages
Dunno who needs that, but for completeness...
Michael Schroeder [Tue, 14 Nov 2017 13:39:10 +0000 (14:39 +0100)]
Add new selection methods to the bindings
Michael Schroeder [Tue, 14 Nov 2017 13:38:40 +0000 (14:38 +0100)]
Support SELECTION_WITH_DISABLED and SELECTION_WITH_BADARCH in testcases
Michael Schroeder [Tue, 14 Nov 2017 13:36:42 +0000 (14:36 +0100)]
Rework selection handling
Add selection_subtract function. Make it possible to combine
the result of the selection_make functions with the already
existing selection. Add support for SELECTION_WITH_DISABLED
and SELECTION_WITH_BADARCH (not completely tested).
Michael Schroeder [Tue, 14 Nov 2017 13:34:19 +0000 (14:34 +0100)]
Add pool_badarch_solvable helper
pool_installable is true if both pool_badarch_solvable and
pool_disabled_solvable are false.
Michael Schroeder [Tue, 14 Nov 2017 13:33:47 +0000 (14:33 +0100)]
Add map_invertall function
Michael Schroeder [Wed, 8 Nov 2017 14:16:35 +0000 (15:16 +0100)]
Refactor selection code a bit
Add a few comments, split out the selection_filter_map() function,
make depmatch of relations faster/nicer.
Michael Schroeder [Wed, 8 Nov 2017 14:14:12 +0000 (15:14 +0100)]
Call repo_add_autopattern before writing the repo
Otherwise the extension will never have the correct size if
the repo does not get rewritten because of missing file provides.
Michael Schroeder [Wed, 8 Nov 2017 12:26:43 +0000 (13:26 +0100)]
Add a comment
Michael Schroeder [Wed, 8 Nov 2017 12:26:20 +0000 (13:26 +0100)]
Improve selection code testing
Michael Schroeder [Mon, 6 Nov 2017 14:50:26 +0000 (15:50 +0100)]
Update TODO_1.0
Michael Schroeder [Mon, 6 Nov 2017 13:20:56 +0000 (14:20 +0100)]
Split userinstalled code into userinstalled.c
Michael Schroeder [Fri, 3 Nov 2017 12:44:30 +0000 (13:44 +0100)]
Rework refine_suggestion a bit
We nowadays have more problem types than update/feature/job rules.
Adapt the code. Does not seem to make much of a difference in the
test suite, though.
Michael Schroeder [Fri, 3 Nov 2017 11:01:34 +0000 (12:01 +0100)]
Some little tweaks
Michael Schroeder [Thu, 2 Nov 2017 15:34:24 +0000 (16:34 +0100)]
make disableproblem/enableproblem static
Michael Schroeder [Thu, 2 Nov 2017 15:21:38 +0000 (16:21 +0100)]
Refactor problem handling
Michael Schroeder [Thu, 2 Nov 2017 11:51:49 +0000 (12:51 +0100)]
Also disable the corresponding forcebest rule when disabling a job
Michael Schroeder [Wed, 25 Oct 2017 12:23:02 +0000 (14:23 +0200)]
Fix droporphaned when there is no installed repo
Michael Schroeder [Wed, 25 Oct 2017 09:17:42 +0000 (11:17 +0200)]
Also report the number of yumobs rules in the statistics
Michael Schroeder [Wed, 25 Oct 2017 08:22:27 +0000 (10:22 +0200)]
yumobs rule generation: also use implicitobsoleteusescolors
This is similar to policy_findupdatepackages. The "this is
somewhat wrong" comment also applies...
Michael Schroeder [Tue, 24 Oct 2017 12:39:42 +0000 (14:39 +0200)]
Merge pull request #234 from jengelh/master
Update .spec package descriptions and RPM groups
Jan Engelhardt [Tue, 24 Oct 2017 12:09:58 +0000 (14:09 +0200)]
Update .spec package descriptions and RPM groups
Michael Schroeder [Tue, 24 Oct 2017 11:08:47 +0000 (13:08 +0200)]
Add bugzilla ref to changes
Michael Schroeder [Mon, 23 Oct 2017 09:41:45 +0000 (11:41 +0200)]
Add changes, bump version to 0.6.30
Michael Schroeder [Mon, 23 Oct 2017 09:33:16 +0000 (11:33 +0200)]
Add more checks to repo_add_deb
Michael Schroeder [Fri, 20 Oct 2017 13:28:40 +0000 (15:28 +0200)]
repo_deb: fix bugs in gzip header skipping
Michael Schroeder [Fri, 20 Oct 2017 11:56:57 +0000 (13:56 +0200)]
Support deb packages with xz compressed control.tar
Michael Schroeder [Thu, 19 Oct 2017 12:18:42 +0000 (14:18 +0200)]
Fix forcebest when there is no installed repo
Michael Schroeder [Thu, 19 Oct 2017 12:06:47 +0000 (14:06 +0200)]
Fix distupgrade all packages when there is no installed repo
Michael Schroeder [Thu, 19 Oct 2017 11:28:33 +0000 (13:28 +0200)]
Fix distupgrade all packages with cleandeps
Also add a test for this.
Michael Schroeder [Thu, 19 Oct 2017 07:49:28 +0000 (09:49 +0200)]
Get rid of dupmap_all
Michael Schroeder [Wed, 18 Oct 2017 12:49:02 +0000 (14:49 +0200)]
Simplify a bit more
Michael Schroeder [Wed, 18 Oct 2017 11:50:54 +0000 (13:50 +0200)]
Adapt test cases to dup rule changes
We now have two solutions: keep the old package or deinstall it.
(I.e. we can either disable the dup rule or the update rule.)
Michael Schroeder [Wed, 18 Oct 2017 11:50:35 +0000 (13:50 +0200)]
Simplify things a bit now that we always use dup rules
Michael Schroeder [Wed, 18 Oct 2017 10:52:41 +0000 (12:52 +0200)]
Always create dup rules for distupgrade jobs
We used to use update rules for "distupgrade all packages".
This is a tiny bit faster and needs less memory, but the downside
is that for problems there only is the "get rid of the update rule"
solution, but not the "disable dup mode for this package" solution.
So simplify things by always creating dup rules for dup mode.
Michael Schroeder [Wed, 18 Oct 2017 10:51:55 +0000 (12:51 +0200)]
Fix typo in testcase
Michael Schroeder [Mon, 16 Oct 2017 11:58:16 +0000 (13:58 +0200)]
Also use recommends when ordering package installs
Michael Schroeder [Thu, 12 Oct 2017 09:53:13 +0000 (11:53 +0200)]
Simplify check_xsupp code a bit
Michael Schroeder [Thu, 12 Oct 2017 09:45:45 +0000 (11:45 +0200)]
Sync rpm header limits with values from upstream rpm
Michael Schroeder [Thu, 12 Oct 2017 09:29:15 +0000 (11:29 +0200)]
Merge pull request #230 from liuming50/master
repo_rpmdb.c: increase MAX_HDR_CNT and MAX_HDR_DSIZE
Michael Schroeder [Thu, 5 Oct 2017 14:53:40 +0000 (16:53 +0200)]
Test cleandeps update of all packages
Michael Schroeder [Thu, 5 Oct 2017 14:53:26 +0000 (16:53 +0200)]
Allow solver_intersect_obsoleted to be called with no map
Michael Schroeder [Thu, 5 Oct 2017 10:54:26 +0000 (12:54 +0200)]
Refactor find_update_seeds
Michael Schroeder [Wed, 4 Oct 2017 15:28:28 +0000 (17:28 +0200)]
Refactor cleandeps code into cleandeps.c
Also support cleandeps for "update all packages".
Michael Schroeder [Wed, 4 Oct 2017 15:27:38 +0000 (17:27 +0200)]
Fix solver_describe_weakdep_decision reporting recommends of not installed packages
Michael Schroeder [Wed, 4 Oct 2017 11:48:27 +0000 (13:48 +0200)]
Add new solver_util.c file for helper functions
No need to clutter up the solver.c and rules.c with those
functions.
Michael Schroeder [Wed, 4 Oct 2017 08:58:16 +0000 (10:58 +0200)]
Add --testcase option to example solver