]> git.ipfire.org Git - thirdparty/libsolv.git/log
thirdparty/libsolv.git
9 years agoAdd changes, bump version to 0.6.16 0.6.16
Michael Schroeder [Mon, 21 Dec 2015 12:00:30 +0000 (13:00 +0100)] 
Add changes, bump version to 0.6.16

9 years agoAdd more dup tests
Michael Schroeder [Mon, 21 Dec 2015 11:58:39 +0000 (12:58 +0100)] 
Add more dup tests

9 years agoFix assertion rule test
Michael Schroeder [Mon, 21 Dec 2015 11:55:34 +0000 (12:55 +0100)] 
Fix assertion rule test

just checking for !r->d is not enough

9 years agoDo not create dup rules for orphaned packages
Michael Schroeder [Fri, 18 Dec 2015 16:42:24 +0000 (17:42 +0100)] 
Do not create dup rules for orphaned packages

This was deleted with commit 98352a506ba091a62bccc29d044e60e64d07f338
by accident.

9 years agoAdd changes, bump version to 0.6.15 0.6.15
Michael Schroeder [Mon, 14 Dec 2015 14:53:29 +0000 (15:53 +0100)] 
Add changes, bump version to 0.6.15

9 years agoSpelling fixes from Debian
Michael Schroeder [Mon, 14 Dec 2015 14:46:16 +0000 (15:46 +0100)] 
Spelling fixes from Debian

9 years agoMerge pull request #115 from openSUSE/ma-helix
Michael Schroeder [Mon, 14 Dec 2015 14:42:20 +0000 (15:42 +0100)] 
Merge pull request #115 from openSUSE/ma-helix

No release must not be mapped to an empty release.

9 years agoSmall optimization for last commit
Michael Schroeder [Mon, 14 Dec 2015 14:41:29 +0000 (15:41 +0100)] 
Small optimization for last commit

9 years agoImplement extra evr comparison for linked packages
Michael Schroeder [Fri, 11 Dec 2015 16:31:37 +0000 (17:31 +0100)] 
Implement extra evr comparison for linked packages

9 years agoRevert "Revert "Also consider the buildtime when linking products""
Michael Schroeder [Fri, 11 Dec 2015 15:26:39 +0000 (16:26 +0100)] 
Revert "Revert "Also consider the buildtime when linking products""

Oh well. I hope they make up their minds at some point.

This reverts commit fa1d0de3e6fa244e47a9e50092a47b1435dc5cc8.

9 years agoRework multiversion orphaned handling
Michael Schroeder [Fri, 11 Dec 2015 14:49:10 +0000 (15:49 +0100)] 
Rework multiversion orphaned handling

We now create a (-p|u1|u2|u3) dup rule for multiversion orphans.
We also test keeporphans/allowuninstall with dup.

9 years agoMove setting of data->incoreoffset[entry]
Michael Schroeder [Fri, 11 Dec 2015 11:08:36 +0000 (12:08 +0100)] 
Move setting of data->incoreoffset[entry]

We need the old value when we copy the complete old entry

9 years agoFix typo in last commit
Michael Schroeder [Thu, 10 Dec 2015 16:26:24 +0000 (17:26 +0100)] 
Fix typo in last commit

Hmm, I wonder why it worked with my tests...

9 years agoMake fixarray schema mismatches non-fatal
Michael Schroeder [Thu, 10 Dec 2015 14:52:47 +0000 (15:52 +0100)] 
Make fixarray schema mismatches non-fatal

We just ignore all elements in that case.

9 years agorepodata_internalize: implement support for key type changed
Michael Schroeder [Thu, 10 Dec 2015 14:35:41 +0000 (15:35 +0100)] 
repodata_internalize: implement support for key type changed

The old code just added both types to the schema. For quite
some time now, we only want one type for each keyname.

9 years agoAllow serialization of REPOKEY_TYPE_DELETED
Michael Schroeder [Mon, 7 Dec 2015 12:20:10 +0000 (13:20 +0100)] 
Allow serialization of REPOKEY_TYPE_DELETED

9 years agoIf it doesn't call exit, it is not fatal
Michael Schroeder [Mon, 7 Dec 2015 12:17:47 +0000 (13:17 +0100)] 
If it doesn't call exit, it is not fatal

9 years agoMerge pull request #117 from nikai3d/master
Michael Schroeder [Thu, 3 Dec 2015 10:12:30 +0000 (11:12 +0100)] 
Merge pull request #117 from nikai3d/master

Fix typos in doc

9 years agoFix typos in doc 117/head
Nicolas Kaiser [Wed, 2 Dec 2015 20:28:49 +0000 (21:28 +0100)] 
Fix typos in doc

9 years agoMerge pull request #116 from nikai3d/patch-1
Michael Schroeder [Tue, 1 Dec 2015 10:21:37 +0000 (11:21 +0100)] 
Merge pull request #116 from nikai3d/patch-1

Fix typo in README

9 years agoFix typo in README 116/head
Nicolas Kaiser [Mon, 30 Nov 2015 23:10:06 +0000 (00:10 +0100)] 
Fix typo in README

9 years agoNo release must not be mapped to an empty release. 115/head
Michael Andres [Fri, 27 Nov 2015 09:06:20 +0000 (10:06 +0100)] 
No release must not be mapped to an empty release.

9 years agoRevert "Also consider the buildtime when linking products"
Michael Schroeder [Tue, 24 Nov 2015 14:47:51 +0000 (15:47 +0100)] 
Revert "Also consider the buildtime when linking products"

We'll change libzypp instead.
This reverts commit 6afdd003980478664998fbb3de2dd6de3aea2377.

9 years agoAlso consider the buildtime when linking products
Michael Schroeder [Tue, 24 Nov 2015 14:14:47 +0000 (15:14 +0100)] 
Also consider the buildtime when linking products

9 years agoAdd more statistics
Michael Schroeder [Mon, 23 Nov 2015 10:55:51 +0000 (11:55 +0100)] 
Add more statistics

9 years agoMerge pull request #106 from Conan-Kudo/mga-dnf-fixes
Michael Schroeder [Fri, 20 Nov 2015 16:15:56 +0000 (17:15 +0100)] 
Merge pull request #106 from Conan-Kudo/mga-dnf-fixes

Turn on hawkey-specific behaviors in libsolv for Mageia for DNF

9 years agoAlso parse metainfo.xml as installed appdata files
Michael Schroeder [Wed, 18 Nov 2015 14:52:15 +0000 (15:52 +0100)] 
Also parse metainfo.xml as installed appdata files

9 years agoMove rounding to block size into solv_extend_realloc()
Michael Schroeder [Wed, 18 Nov 2015 14:41:45 +0000 (15:41 +0100)] 
Move rounding to block size into solv_extend_realloc()

As this is not not very often and thus does not need to be
inlined.

9 years agoUse APPDATA_SEARCH_UNINTERNALIZED_FILELIST for installed appdata entries
Michael Schroeder [Wed, 18 Nov 2015 14:28:49 +0000 (15:28 +0100)] 
Use APPDATA_SEARCH_UNINTERNALIZED_FILELIST for installed appdata entries

9 years agoRework appdata handling
Michael Schroeder [Wed, 18 Nov 2015 14:26:41 +0000 (15:26 +0100)] 
Rework appdata handling

Use a concrete package name wherever we can. This means looking
into the file list for installed applications, which can be
enabled with APPDATA_SEARCH_UNINTERNALIZED_FILELIST.

9 years agoAllow appdata linking with package names
Michael Schroeder [Wed, 18 Nov 2015 14:25:57 +0000 (15:25 +0100)] 
Allow appdata linking with package names

9 years agoAdd repodata_lookup_dirstrarray_uninternalized()
Michael Schroeder [Wed, 18 Nov 2015 14:25:10 +0000 (15:25 +0100)] 
Add repodata_lookup_dirstrarray_uninternalized()

Search the filelist of not yet internalized solvables.
Needed for the following commits.

9 years agoOvershoot size for large memory chunks in solv_extend
Michael Schroeder [Tue, 17 Nov 2015 14:33:52 +0000 (15:33 +0100)] 
Overshoot size for large memory chunks in solv_extend

We now dynamically round up the size to some ppower of two. This
brings down the number of mremap calls fro 96163 to 675 when
converting Fedora22's Everything repo, which makes no real difference
on my system but seems to help a lot if this is done in a Xen
guest. See libsolv issue#111 on github.

9 years agoFix last commit
Michael Schroeder [Thu, 15 Oct 2015 20:43:06 +0000 (22:43 +0200)] 
Fix last commit

We can't add the multiversion orphan to the update rules, as that
would mean we no longer enforce an update to one of the repo
packages. So we now just detect the multiversion orphan and do not
add a dup rule.

Note that this is still not correct, as we don't enforce that the
orphan is not erased in keep_orphan mode. In that case we really
need two independent rules. I'm currently not sure where to put
the extra rule...

9 years agoMake keep_orphans also keep multiversion orphans installed
Michael Schroeder [Wed, 14 Oct 2015 12:30:46 +0000 (14:30 +0200)] 
Make keep_orphans also keep multiversion orphans installed

Also make keep_orphanse add multiversion orphans to the
update rule, thus enforcing that they stay installed.

9 years agoSpeed up choice rule generation
Michael Schroeder [Wed, 14 Oct 2015 09:12:53 +0000 (11:12 +0200)] 
Speed up choice rule generation

Reduce the amount of package filtering calls. Brings down the choice
rule creation time from 18ms to 8ms on my system.

9 years agoFix typo in comment
Michael Schroeder [Tue, 13 Oct 2015 11:28:56 +0000 (13:28 +0200)] 
Fix typo in comment

9 years agoRename hasdupjobs to needduprules
Michael Schroeder [Tue, 13 Oct 2015 11:24:49 +0000 (13:24 +0200)] 
Rename hasdupjobs to needduprules

9 years agoDrop inline from solver_addtodupmaps
Michael Schroeder [Tue, 13 Oct 2015 11:22:14 +0000 (13:22 +0200)] 
Drop inline from solver_addtodupmaps

The compiler knows best...

9 years agoSimplify solver_addduprules a bit
Michael Schroeder [Tue, 13 Oct 2015 08:36:58 +0000 (10:36 +0200)] 
Simplify solver_addduprules a bit

9 years agoFix spelling, duh...
Michael Schroeder [Mon, 12 Oct 2015 12:04:54 +0000 (14:04 +0200)] 
Fix spelling, duh...

9 years agoCheck keep_orphans flag in solver_addduprules
Michael Schroeder [Mon, 12 Oct 2015 12:03:55 +0000 (14:03 +0200)] 
Check keep_orphans flag in solver_addduprules

solver_addduprules is called if allowuninstall is set

9 years agoPrefer to autouninstall orphans
Michael Schroeder [Mon, 12 Oct 2015 12:03:25 +0000 (14:03 +0200)] 
Prefer to autouninstall orphans

9 years agoMove allowuninstall map creation
Michael Schroeder [Mon, 12 Oct 2015 11:43:05 +0000 (13:43 +0200)] 
Move allowuninstall map creation

We need to test for them when we have dup jobs

9 years agoAdd changes, bump version to 0.6.14 0.6.14
Michael Schroeder [Mon, 5 Oct 2015 11:30:34 +0000 (13:30 +0200)] 
Add changes, bump version to 0.6.14

9 years agoMark the shared objects generated by the bindings as MODULE
Michael Schroeder [Mon, 5 Oct 2015 11:14:15 +0000 (13:14 +0200)] 
Mark the shared objects generated by the bindings as MODULE

Fixes build on mageia if %cmake is used.

9 years agoFix build on Mageia
Michael Schroeder [Mon, 5 Oct 2015 09:45:16 +0000 (11:45 +0200)] 
Fix build on Mageia

Patch by Thierry Vignaud <thierry.vignaud@gmail.com>

9 years agoGive ex type int to silence the compiler
Michael Schroeder [Mon, 5 Oct 2015 09:44:52 +0000 (11:44 +0200)] 
Give ex type int to silence the compiler

9 years agoAdd RPM-MD repodata support with Mageia 106/head
Neal Gompa (ニール・ゴンパ) [Fri, 2 Oct 2015 14:33:21 +0000 (10:33 -0400)] 
Add RPM-MD repodata support with Mageia

9 years agoTurn on Fedora-specific behaviors in libsolv for Mageia for DNF
Neal Gompa (ニール・ゴンパ) [Fri, 2 Oct 2015 13:33:02 +0000 (09:33 -0400)] 
Turn on Fedora-specific behaviors in libsolv for Mageia for DNF

Consistent with work to enable DNF for Mageia as an alternate
repository manager, definitions expected by hawkey from libsolv
need to be set for the MAGEIA definition as well.

For more information on the work to enable DNF for Mageia, see
https://wiki.mageia.org/en/Feature:Add_DNF_as_Alternate_Repository_Manager

9 years agoUpdate obsoletes pruning in weak deps handling
Michael Schroeder [Fri, 2 Oct 2015 12:03:52 +0000 (14:03 +0200)] 
Update obsoletes pruning in weak deps handling

This still implemented the old "obsoletes uses provides" handling.
Sync with the rest of the code, so that keepexplicitobsoletes,
obsoleteusesprovides and obsoleteusescolors are obeyed.

9 years agoMerge pull request #105 from JacksonIsaac/master
Michael Schroeder [Fri, 2 Oct 2015 10:06:03 +0000 (12:06 +0200)] 
Merge pull request #105 from JacksonIsaac/master

puts $op instead of $p in Transaction summary.

9 years agoputs $op instead of $p in Transaction summary. 105/head
Jackson Isaac [Fri, 2 Oct 2015 06:50:48 +0000 (12:20 +0530)] 
puts $op instead of $p in Transaction summary.

Print $op in the second part of puts when the package is to be
upgraded or downgraded. Previously same package info was been
printed.

9 years agoAlso check the installed package for multiversion
Michael Schroeder [Wed, 30 Sep 2015 11:42:34 +0000 (13:42 +0200)] 
Also check the installed package for multiversion

Thus, both the to-be-installed and the already installed
package must have the multiversion bit set.
Otherwise, a dependency verify later on will complain.

9 years agoAdd changes, bump version to 0.6.13 0.6.13
Michael Schroeder [Fri, 25 Sep 2015 09:57:47 +0000 (11:57 +0200)] 
Add changes, bump version to 0.6.13

9 years agoSupport a generic string for pattern-visible()
Michael Schroeder [Thu, 24 Sep 2015 12:23:24 +0000 (14:23 +0200)] 
Support a generic string for pattern-visible()

9 years agoadd bug number to changes
Michael Schroeder [Mon, 21 Sep 2015 14:48:08 +0000 (16:48 +0200)] 
add bug number to changes

9 years agofix tcl var parsing in the docs
Michael Schroeder [Mon, 21 Sep 2015 11:55:03 +0000 (13:55 +0200)] 
fix tcl var parsing in the docs

9 years agoSupport SOLVER_ALLOWUNINSTALL jobs
Michael Schroeder [Mon, 21 Sep 2015 11:47:02 +0000 (13:47 +0200)] 
Support SOLVER_ALLOWUNINSTALL jobs

This works like the SOLVER_FLAG_ALLOW_UNINSTALL flag, but limited
to a specific set of packages.

9 years agosplit order.c from transaction.c
Michael Schroeder [Tue, 15 Sep 2015 09:23:24 +0000 (11:23 +0200)] 
split order.c from transaction.c

9 years agosimplify the code
Michael Schroeder [Tue, 15 Sep 2015 09:11:31 +0000 (11:11 +0200)] 
simplify the code

9 years agomake SOLVER_TRANSACTION_KEEP_ORDERCYCLES work if we don't save the other orderdata
Michael Schroeder [Tue, 15 Sep 2015 09:03:33 +0000 (11:03 +0200)] 
make SOLVER_TRANSACTION_KEEP_ORDERCYCLES work if we don't save the other orderdata

9 years agorenumber cycleids
Michael Schroeder [Tue, 15 Sep 2015 08:52:48 +0000 (10:52 +0200)] 
renumber cycleids

9 years agosolv: refactor find_repo
Michael Schroeder [Mon, 14 Sep 2015 13:27:07 +0000 (15:27 +0200)] 
solv: refactor find_repo

9 years agomove yum_substitute data freeing to free_repoinfos call
Michael Schroeder [Mon, 14 Sep 2015 13:06:58 +0000 (15:06 +0200)] 
move yum_substitute data freeing to free_repoinfos call

9 years agoadd ordercycles introspection methods
Michael Schroeder [Mon, 14 Sep 2015 11:35:48 +0000 (13:35 +0200)] 
add ordercycles introspection methods

9 years agomake mkmask robust against zero elements
Michael Schroeder [Mon, 14 Sep 2015 10:20:10 +0000 (12:20 +0200)] 
make mkmask robust against zero elements

9 years agosupport 'recommends' in repo_mdk.c for mageia
Michael Schroeder [Mon, 14 Sep 2015 10:19:24 +0000 (12:19 +0200)] 
support 'recommends' in repo_mdk.c for mageia

9 years agosupport MAGEIA as build target
Michael Schroeder [Mon, 14 Sep 2015 10:19:00 +0000 (12:19 +0200)] 
support MAGEIA as build target

9 years agosplit solv C example into multiple files
Michael Schroeder [Mon, 14 Sep 2015 10:18:09 +0000 (12:18 +0200)] 
split solv C example into multiple files

9 years agosimplify how compressed data is dealt with
Michael Schroeder [Mon, 14 Sep 2015 09:11:30 +0000 (11:11 +0200)] 
simplify how compressed data is dealt with

9 years agoallow a filelist right after the primary data for rpmmd
Michael Schroeder [Fri, 11 Sep 2015 20:05:22 +0000 (22:05 +0200)] 
allow a filelist right after the primary data for rpmmd

9 years agoAdd changes, bump version to 0.6.12 0.6.12
Michael Schroeder [Tue, 1 Sep 2015 11:46:50 +0000 (13:46 +0200)] 
Add changes, bump version to 0.6.12

9 years agoget rid of RPMSENSE_RICH
Michael Schroeder [Tue, 1 Sep 2015 11:45:57 +0000 (13:45 +0200)] 
get rid of RPMSENSE_RICH

also lowercase and/or/if/else, this seems to be currently prefered.

9 years agoAllow trailings slashes for the filenames in deb packages
Michael Schroeder [Tue, 1 Sep 2015 11:12:43 +0000 (13:12 +0200)] 
Allow trailings slashes for the filenames in deb packages

Trailing slashes ar used by sysv ar to allow spaces in
filenames...

9 years agobindings: clean up conversion error handling
Michael Schroeder [Tue, 1 Sep 2015 09:45:22 +0000 (11:45 +0200)] 
bindings: clean up conversion error handling

9 years agobindings: delete that perl comment, it makes some swig versions trip
Michael Schroeder [Mon, 31 Aug 2015 13:16:45 +0000 (15:16 +0200)] 
bindings: delete that perl comment, it makes some swig versions trip

9 years agobindings: fix bugs in appdata refcounting
Michael Schroeder [Mon, 31 Aug 2015 10:50:27 +0000 (12:50 +0200)] 
bindings: fix bugs in appdata refcounting

For perl, values put on the stack must be moralized. For tcl,
Tcl_SetObjResult already does the increment of the result.

9 years agoAdd some forgotten SWIGINTERNs
Michael Schroeder [Fri, 28 Aug 2015 15:06:32 +0000 (17:06 +0200)] 
Add some forgotten SWIGINTERNs

9 years agoimprove readability of appdata helpers
Michael Schroeder [Fri, 28 Aug 2015 14:27:42 +0000 (16:27 +0200)] 
improve readability of appdata helpers

9 years agofix typo in comment
Michael Schroeder [Fri, 28 Aug 2015 13:52:42 +0000 (15:52 +0200)] 
fix typo in comment

9 years agoMake xfopen return file handles with close-on-exec set
Michael Schroeder [Fri, 28 Aug 2015 13:42:59 +0000 (15:42 +0200)] 
Make xfopen return file handles with close-on-exec set

Also add a cloexec() method to turn close-on-exec off again.

9 years agoSupport the meta datapos hack in dataiterator_init
Michael Schroeder [Fri, 28 Aug 2015 13:40:44 +0000 (15:40 +0200)] 
Support the meta datapos hack in dataiterator_init

A datapos with solvid SOLVID_META and no repodataid set means
search all the repo's metadata.

9 years agoexamples: initialize extcookie
Michael Schroeder [Fri, 28 Aug 2015 12:20:56 +0000 (14:20 +0200)] 
examples: initialize extcookie

9 years agoAdd a Chksum::from_bin to the bindings
Michael Schroeder [Fri, 28 Aug 2015 11:59:15 +0000 (13:59 +0200)] 
Add a Chksum::from_bin to the bindings

Also make use of the new solv_chksum_cmp function.

9 years agoexport solv_chksum_cmp
Michael Schroeder [Fri, 28 Aug 2015 11:26:37 +0000 (13:26 +0200)] 
export solv_chksum_cmp

9 years agoadd solv_chksum_cmp()
Michael Schroeder [Fri, 28 Aug 2015 11:20:56 +0000 (13:20 +0200)] 
add solv_chksum_cmp()

To compare two checksums.

9 years agoget rid of checking extcookie existence by looking at the first byte
Michael Schroeder [Fri, 28 Aug 2015 11:19:29 +0000 (13:19 +0200)] 
get rid of checking extcookie existence by looking at the first byte

9 years agoRemove appdata_link again
Michael Schroeder [Fri, 28 Aug 2015 09:48:54 +0000 (11:48 +0200)] 
Remove appdata_link again

As it turned out that you can only link to global variables, you
might as well just store the name of the variable with the normal
appdata mechanism.

9 years agoDo not use appdata_link
Michael Schroeder [Fri, 28 Aug 2015 09:44:12 +0000 (11:44 +0200)] 
Do not use appdata_link

It will be removed with the next commit

9 years agoimplement appdata_disown for perl in a cleaner way
Michael Schroeder [Thu, 27 Aug 2015 16:13:27 +0000 (18:13 +0200)] 
implement appdata_disown for perl in a cleaner way

9 years agotclsolv: use new appdata_link mechanism
Michael Schroeder [Thu, 27 Aug 2015 15:22:29 +0000 (17:22 +0200)] 
tclsolv: use new appdata_link mechanism

9 years agoReworked appdata handling
Michael Schroeder [Thu, 27 Aug 2015 15:18:01 +0000 (17:18 +0200)] 
Reworked appdata handling

We now do proper reference management when overwriting a set
appdata value. Also, we no longer by default do not increment the
reference count to allow circular links between the pool and its
appdata.
Instead, we now have a appdata_disown() pool method that does
the referenct tweaking. So you have to really know what you're
doing if you call appdata_disown.

We also now have an "appdata_linked" method for tcl, as tcl does
not have references which makes the normal appdata mechanism
kind of useless.

9 years agoAdd a tcl chapter to the bindings documentation
Michael Schroeder [Wed, 26 Aug 2015 19:45:37 +0000 (21:45 +0200)] 
Add a tcl chapter to the bindings documentation

9 years agoexample solvers: bugfixing & refactoring
Michael Schroeder [Wed, 26 Aug 2015 15:35:40 +0000 (17:35 +0200)] 
example solvers: bugfixing & refactoring

9 years agoexample solvers: small fixes
Michael Schroeder [Wed, 26 Aug 2015 13:12:41 +0000 (15:12 +0200)] 
example solvers: small fixes

9 years agotclsolv: support delayed fetching of filelists
Michael Schroeder [Wed, 26 Aug 2015 13:05:35 +0000 (15:05 +0200)] 
tclsolv: support delayed fetching of filelists

To test the loadcallback code of the bindings...

9 years agotcl bindings: fix loadcallback
Michael Schroeder [Wed, 26 Aug 2015 13:04:50 +0000 (15:04 +0200)] 
tcl bindings: fix loadcallback

9 years agotclsolv: implement solving, package downloading and installation
Michael Schroeder [Wed, 26 Aug 2015 10:06:39 +0000 (12:06 +0200)] 
tclsolv: implement solving, package downloading and installation

9 years agotcl bindings: rename __str__ to str, __repr__ to repr, __eq__ to ==, and __ne__ to !=
Michael Schroeder [Wed, 26 Aug 2015 09:23:07 +0000 (11:23 +0200)] 
tcl bindings: rename __str__ to str, __repr__ to repr, __eq__ to ==, and __ne__ to !=

Also rename __repr__ to repr for the perl bindings.