]> git.ipfire.org Git - thirdparty/libsolv.git/log
thirdparty/libsolv.git
9 years agoRearrange scan order: main dir first, legacy dir next. 148/head
Atri Bhattacharya [Wed, 20 Jul 2016 18:25:37 +0000 (20:25 +0200)] 
Rearrange scan order: main dir first, legacy dir next.

9 years agoFix example to work with new and legacy appdata dirs.
Atri Bhattacharya [Wed, 20 Jul 2016 18:17:01 +0000 (20:17 +0200)] 
Fix example to work with new and legacy appdata dirs.

9 years agoAlso scan "/usr/share/metainfo" for appdata.
Atri Bhattacharya [Wed, 20 Jul 2016 18:02:35 +0000 (20:02 +0200)] 
Also scan "/usr/share/metainfo" for appdata.

Recent iterations of the appstream specification recommend
installing the appstream files in /usr/share/metainfo rather
than /usr/share/appdata. For  apps which may continue
to install their appstream files according to the legacy
standards, also keep /usr/share/appdata in the list of dirs
to scan.

9 years agoMerge pull request #147 from openSUSE/FATE#320699
Michael Schroeder [Wed, 20 Jul 2016 11:46:59 +0000 (13:46 +0200)] 
Merge pull request #147 from openSUSE/FATE#320699

Support tri-state product-endoflife (tag absent, present but nodate(0…

9 years agoSupport tri-state product-endoflife (tag absent, present but nodate(0), present ... 147/head
Michael Andres [Wed, 20 Jul 2016 11:43:56 +0000 (13:43 +0200)] 
Support tri-state product-endoflife (tag absent, present but nodate(0), present + date)

9 years agoTake lockstep into account when calculating unneeded packages
Michael Schroeder [Wed, 20 Jul 2016 11:37:39 +0000 (13:37 +0200)] 
Take lockstep into account when calculating unneeded packages

9 years agoAlso look at the arch when sorting obsoleters
Michael Schroeder [Tue, 12 Jul 2016 12:14:20 +0000 (14:14 +0200)] 
Also look at the arch when sorting obsoleters

9 years agoIgnore appplication extensions for now
Michael Schroeder [Fri, 17 Jun 2016 11:32:45 +0000 (13:32 +0200)] 
Ignore appplication extensions for now

9 years agodo not auto-minimize for recommended packages if the current selection is favored
Michael Schroeder [Wed, 15 Jun 2016 15:22:27 +0000 (17:22 +0200)] 
do not auto-minimize for recommended packages if the current selection is favored

9 years agoUpdate copyright
Michael Schroeder [Wed, 15 Jun 2016 11:39:27 +0000 (13:39 +0200)] 
Update copyright

9 years agoRefactor +testcase_rclass2str
Michael Schroeder [Wed, 15 Jun 2016 11:36:10 +0000 (13:36 +0200)] 
Refactor +testcase_rclass2str

9 years agoAdd enabled features to solvversion.h
Michael Schroeder [Wed, 15 Jun 2016 11:35:26 +0000 (13:35 +0200)] 
Add enabled features to solvversion.h

9 years agoTake disfavors into account when auto-minimizing for recommended packages
Michael Schroeder [Wed, 15 Jun 2016 10:08:35 +0000 (12:08 +0200)] 
Take disfavors into account when auto-minimizing for recommended packages

9 years agoAdd new file suse.c
Michael Schroeder [Tue, 14 Jun 2016 14:52:30 +0000 (16:52 +0200)] 
Add new file suse.c

9 years agoUse repo_rewrite_suse_deps instead of the repo_fix functions
Michael Schroeder [Tue, 14 Jun 2016 14:51:33 +0000 (16:51 +0200)] 
Use repo_rewrite_suse_deps instead of the repo_fix functions

Do not use the repo_fix functions in new code!

9 years agoMove weird suse functions into a suse.c file
Michael Schroeder [Tue, 14 Jun 2016 14:48:58 +0000 (16:48 +0200)] 
Move weird suse functions into a suse.c file

Please do not use em ;)

9 years agoImprove last commit so that self-providing requires don't pull in other providers
Michael Schroeder [Tue, 14 Jun 2016 12:51:22 +0000 (14:51 +0200)] 
Improve last commit so that self-providing requires don't pull in other providers

9 years agoChange cleandeps code so that it keeps all providers
Michael Schroeder [Tue, 14 Jun 2016 11:15:40 +0000 (13:15 +0200)] 
Change cleandeps code so that it keeps all providers

It will report less unneeded packages, but it will also not
erase the wrong providers.

9 years agoMake sure that all repos have different names in a testcase
Michael Schroeder [Mon, 13 Jun 2016 13:14:38 +0000 (15:14 +0200)] 
Make sure that all repos have different names in a testcase

9 years agofix bug in changes ;)
Michael Schroeder [Wed, 8 Jun 2016 11:26:41 +0000 (13:26 +0200)] 
fix bug in changes ;)

9 years agoAdd changes, bump version to 0.6.22 0.6.22
Michael Schroeder [Wed, 8 Jun 2016 11:25:34 +0000 (13:25 +0200)] 
Add changes, bump version to 0.6.22

9 years agoAdd some news
Michael Schroeder [Wed, 8 Jun 2016 11:15:07 +0000 (13:15 +0200)] 
Add some news

9 years agoTweak urpm_reorder so that selected packages get score 4
Michael Schroeder [Tue, 7 Jun 2016 09:01:16 +0000 (11:01 +0200)] 
Tweak urpm_reorder so that selected packages get score 4

9 years agoFix bug in ignoreinst logic
Michael Schroeder [Tue, 7 Jun 2016 08:55:50 +0000 (10:55 +0200)] 
Fix bug in ignoreinst logic

The old code did not work if there was exactly one ignoreinst
candidate.

9 years agoImprove alternatives listing in example solver
Michael Schroeder [Fri, 20 May 2016 13:00:19 +0000 (15:00 +0200)] 
Improve alternatives listing in example solver

9 years agoadd bnc to changes entry
Michael Schroeder [Fri, 20 May 2016 12:59:45 +0000 (14:59 +0200)] 
add bnc to changes entry

9 years agoAdd changes, bump version to 0.6.21 0.6.21
Michael Schroeder [Wed, 18 May 2016 13:14:38 +0000 (15:14 +0200)] 
Add changes, bump version to 0.6.21

9 years agoMerge pull request #134 from maxinbjohn/master
Michael Schroeder [Wed, 18 May 2016 12:57:44 +0000 (14:57 +0200)] 
Merge pull request #134 from maxinbjohn/master

CMakeLists.txt: fix MAN_INSTALL_DIR

9 years agoImplement urpmi kernel reordering
Michael Schroeder [Wed, 18 May 2016 12:49:30 +0000 (14:49 +0200)] 
Implement urpmi kernel reordering

9 years agoCMakeLists.txt: fix MAN_INSTALL_DIR 134/head
Maxin B. John [Tue, 17 May 2016 15:13:19 +0000 (18:13 +0300)] 
CMakeLists.txt: fix MAN_INSTALL_DIR

It checks ${CMAKE_INSTALL_PREFIX}/share/man when configure, but it may
not exist when crosscompile, for example, when CMAKE_INSTALL_PREFIX="/",
it is OK, but when CMAKE_INSTALL_PREFIX="/some/path/else", then it
doesn't exist, and the man dir would be set to "/usr/man" which is
incorrect.

Signed-off-by: Robert Yang liezhi.yang@windriver.com
Signed-off-by: Maxin B. John <maxin.john@intel.com>
9 years agoWe always need the rerunsolver label in the example solver
Michael Schroeder [Tue, 17 May 2016 11:42:19 +0000 (13:42 +0200)] 
We always need the rerunsolver label in the example solver

9 years agoFix supplements handling when implicitobsoleteusescolors is set
Michael Schroeder [Tue, 17 May 2016 11:31:58 +0000 (13:31 +0200)] 
Fix supplements handling when implicitobsoleteusescolors is set

This currently relys on the infarch lockstep handling a bit. Let's
see if this is enough or we need some better filtering code.

9 years agoFix off by one in cshash dedup code
Michael Schroeder [Tue, 17 May 2016 09:29:50 +0000 (11:29 +0200)] 
Fix off by one in cshash dedup code

Actually no harm done without the commit, the duplicates are
simply ignored.

9 years agoFix order of solv_extend arguments in repo_add_rpmmd
Michael Schroeder [Tue, 17 May 2016 09:22:56 +0000 (11:22 +0200)] 
Fix order of solv_extend arguments in repo_add_rpmmd

Fixes libsolv sometimes segfaulting since commit
d06562f7b70f6ceb7d52e717efd1963ce6e8ecf0

9 years agoAdd the SOLVER_FLAG_URPM_REORDER solver flag
Michael Schroeder [Fri, 13 May 2016 13:03:39 +0000 (15:03 +0200)] 
Add the SOLVER_FLAG_URPM_REORDER solver flag

It makes the solver reorder alternatives more
closely to what urpm does.

9 years agoCheck POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS instead of POOL_FLAG_OBSOLETEUSESCOLORS
Michael Schroeder [Fri, 6 May 2016 12:13:44 +0000 (14:13 +0200)] 
Check POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS instead of POOL_FLAG_OBSOLETEUSESCOLORS

This was forgotten when we changed the default for fedora.
Fixes issue #94

9 years agoTreat TAG_FILECOLORS as optional header element
Michael Schroeder [Fri, 6 May 2016 12:12:21 +0000 (14:12 +0200)] 
Treat TAG_FILECOLORS as optional header element

SUSE has a patch that makes rpmbuild not add the FILECOLORS tag.
So insisting on its presence when RPM_ITERATE_FILELIST_WITHCOL
is used is wrong.

9 years agoNote that pool_setarch must not come before pool_setdisttype.
Michael Schroeder [Fri, 6 May 2016 10:10:17 +0000 (12:10 +0200)] 
Note that pool_setarch must not come before pool_setdisttype.

9 years agoWork around gcc warning
Michael Schroeder [Fri, 6 May 2016 10:01:42 +0000 (12:01 +0200)] 
Work around gcc warning

9 years agoChange how pool_setarch deals with unknown architectures
Michael Schroeder [Fri, 6 May 2016 09:50:46 +0000 (11:50 +0200)] 
Change how pool_setarch deals with unknown architectures

Before this commit, pool_setarch switched to a "" policy for
unknown architectures, i.e. no non-noarch package could be
installed. After this change, we allow packages of the provided
arch string.

Because of this, we also can delete all dummy policies from
the archpolicies array.

9 years agoSupport alternative disfavor in example solver
Michael Schroeder [Wed, 4 May 2016 09:11:23 +0000 (11:11 +0200)] 
Support alternative disfavor in example solver

Just for testing purposes...

9 years agoShow alternatives in example solver
Michael Schroeder [Tue, 3 May 2016 15:41:09 +0000 (17:41 +0200)] 
Show alternatives in example solver

9 years agoAlso call prefer_favored at the end of reorder_dq_for_jobrules
Michael Schroeder [Tue, 3 May 2016 15:39:05 +0000 (17:39 +0200)] 
Also call prefer_favored at the end of reorder_dq_for_jobrules

Otherwise we may select the wrong package.

9 years agoImplement SOLVER_FAVOR and SOLVER_DISFAVOR
Michael Schroeder [Tue, 3 May 2016 14:22:06 +0000 (16:22 +0200)] 
Implement SOLVER_FAVOR and SOLVER_DISFAVOR

9 years agoRename selection_make_containsdep to selection_make_matchdepid
Michael Schroeder [Fri, 22 Apr 2016 13:52:02 +0000 (15:52 +0200)] 
Rename selection_make_containsdep to selection_make_matchdepid

And support SELECTION_MATCH_DEPSTR for exact id match

9 years agoAdd pool_whatcontainsdep, selection_make_containsdep, and SELECTION_MATCH_DEPSTR
Michael Schroeder [Fri, 22 Apr 2016 13:39:54 +0000 (15:39 +0200)] 
Add pool_whatcontainsdep, selection_make_containsdep, and SELECTION_MATCH_DEPSTR

9 years agoMerge pull request #131 from dburm/bindings/setdisttype
Michael Schroeder [Thu, 21 Apr 2016 10:11:04 +0000 (12:11 +0200)] 
Merge pull request #131 from dburm/bindings/setdisttype

bindings: implement pool_setdisttype

9 years agoAdd -r option to deb2solv to make it read repo metadata instead of deb packages
Michael Schroeder [Wed, 20 Apr 2016 11:15:50 +0000 (13:15 +0200)] 
Add -r option to deb2solv to make it read repo metadata instead of deb packages

9 years agoAdd code for reason testing
Michael Schroeder [Wed, 20 Apr 2016 11:10:41 +0000 (13:10 +0200)] 
Add code for reason testing

9 years agoFix of by one error in repo_deb that could lead to missing packages
Michael Schroeder [Mon, 18 Apr 2016 15:40:26 +0000 (17:40 +0200)] 
Fix of by one error in repo_deb that could lead to missing packages

9 years agobindings: implement pool_setdisttype 131/head
Dmitry Burmistrov [Sat, 16 Apr 2016 19:07:53 +0000 (22:07 +0300)] 
bindings: implement pool_setdisttype

9 years agoMake the pool_parserpmrichdep function public
Michael Schroeder [Mon, 11 Apr 2016 14:01:33 +0000 (16:01 +0200)] 
Make the pool_parserpmrichdep function public

9 years agoBump RPMDB_COOKIE_VERSION as we added SOLVABLE_PREREQ_IGNOREINST
Michael Schroeder [Sat, 9 Apr 2016 11:21:53 +0000 (13:21 +0200)] 
Bump RPMDB_COOKIE_VERSION as we added SOLVABLE_PREREQ_IGNOREINST

9 years agoAdd changes, bump version to 0.6.20 0.6.20
Michael Schroeder [Fri, 8 Apr 2016 13:38:56 +0000 (15:38 +0200)] 
Add changes, bump version to 0.6.20

9 years agoBetter support of complex deps in pool_match_dep and selection_make_matchdeps
Michael Schroeder [Fri, 8 Apr 2016 13:33:57 +0000 (15:33 +0200)] 
Better support of complex deps in pool_match_dep and selection_make_matchdeps

9 years agoMake SOLVER_REASON_CLEANDEPS_ERASE introspection reason work again
Michael Schroeder [Fri, 8 Apr 2016 12:46:44 +0000 (14:46 +0200)] 
Make SOLVER_REASON_CLEANDEPS_ERASE introspection reason work again

Fixes issue#127

9 years agoMake dep2str use rpm-like output for complex deps if disttype is rpm
Michael Schroeder [Fri, 8 Apr 2016 12:18:26 +0000 (14:18 +0200)] 
Make dep2str use rpm-like output for complex deps if disttype is rpm

9 years agoSupport SOLVABLE_PREREQ_IGNOREINST in testcases
Michael Schroeder [Fri, 8 Apr 2016 09:31:50 +0000 (11:31 +0200)] 
Support SOLVABLE_PREREQ_IGNOREINST in testcases

Because it influences dependency solving...

9 years agoSimplify ignorepre queue creation
Michael Schroeder [Fri, 8 Apr 2016 09:07:33 +0000 (11:07 +0200)] 
Simplify ignorepre queue creation

9 years agoImplement filtering of Requires(pre,post) for installed packages
Michael Schroeder [Thu, 7 Apr 2016 15:09:14 +0000 (17:09 +0200)] 
Implement filtering of Requires(pre,post) for installed packages

Should fix issue#126. Except that we need to support it in
the testcases as well.

9 years agoWe can put reldeps into incore for some time now
Michael Schroeder [Thu, 7 Apr 2016 13:55:16 +0000 (15:55 +0200)] 
We can put reldeps into incore for some time now

So remove the triggers workaround

9 years agoSimplify handling of pseudo package updates
Michael Schroeder [Thu, 10 Mar 2016 12:03:04 +0000 (13:03 +0100)] 
Simplify handling of pseudo package updates

We extend the updatemap to the instbuddies instead of doing complex
stuff in the package update code. Lets see if this is sufficient...

9 years agoDo not try to update pseudo packages when we update the linked package as well
Michael Schroeder [Thu, 10 Mar 2016 10:48:52 +0000 (11:48 +0100)] 
Do not try to update pseudo packages when we update the linked package as well

(bnc#967006)

9 years agoFix character count of pattern: string
Michael Schroeder [Thu, 10 Mar 2016 10:48:24 +0000 (11:48 +0100)] 
Fix character count of pattern: string

9 years agoRework orphan handling in dup mode
Michael Schroeder [Mon, 7 Mar 2016 13:09:40 +0000 (14:09 +0100)] 
Rework orphan handling in dup mode

The old code had problems when the updaters contained other
installed packages.

9 years agoMake _Pool_tmpspace definition internal
Michael Schroeder [Thu, 3 Mar 2016 14:18:34 +0000 (15:18 +0100)] 
Make _Pool_tmpspace definition internal

9 years agoSplit diskusage and fileprovides code into separate files
Michael Schroeder [Thu, 3 Mar 2016 14:08:38 +0000 (15:08 +0100)] 
Split diskusage and fileprovides code into separate files

9 years agorpmmd diskusage: prepend a '/' to the dir if not already there
Michael Schroeder [Thu, 3 Mar 2016 11:59:18 +0000 (12:59 +0100)] 
rpmmd diskusage: prepend a '/' to the dir if not already there

Makes the code consistent with repo_susetags.

9 years agoFix comments
Michael Schroeder [Mon, 29 Feb 2016 13:14:05 +0000 (14:14 +0100)] 
Fix comments

9 years agoUse less memory when extending packages
Michael Schroeder [Mon, 29 Feb 2016 12:49:48 +0000 (13:49 +0100)] 
Use less memory when extending packages

Implement a hash instead of mis-using a string pool.

9 years agosolv_hex2bin: don't eat nibbles
Michael Schroeder [Fri, 26 Feb 2016 12:40:28 +0000 (13:40 +0100)] 
solv_hex2bin: don't eat nibbles

9 years agoDo not create a checksum hash when we're not extending
Michael Schroeder [Fri, 26 Feb 2016 10:45:27 +0000 (11:45 +0100)] 
Do not create a checksum hash when we're not extending

Many repos don't have extension data, so we postpone the
hash creation until we need it.

9 years agoAdd repodata_lookup_dirstrarray_uninternalized method
Michael Schroeder [Fri, 26 Feb 2016 10:45:09 +0000 (11:45 +0100)] 
Add repodata_lookup_dirstrarray_uninternalized method

Needed for next commit.

9 years agoAdd changes, bump version to 0.6.19 0.6.19
Michael Schroeder [Mon, 15 Feb 2016 15:47:19 +0000 (16:47 +0100)] 
Add changes, bump version to 0.6.19

9 years agoParse media number from baseurl
Michael Schroeder [Tue, 9 Feb 2016 12:41:13 +0000 (13:41 +0100)] 
Parse media number from baseurl

Use 'createrepo -u media:// --split dir1 dir2...' to create
a multi-volume repository.

9 years agoSupport susedata.<lang>.xml language files
Michael Schroeder [Tue, 9 Feb 2016 10:57:23 +0000 (11:57 +0100)] 
Support susedata.<lang>.xml language files

9 years agobump version, add changes 0.6.18
Michael Schroeder [Fri, 29 Jan 2016 13:19:53 +0000 (14:19 +0100)] 
bump version, add changes

9 years agobindings: add python __hash__ method for some classes
Michael Schroeder [Fri, 29 Jan 2016 13:06:23 +0000 (14:06 +0100)] 
bindings: add python __hash__ method for some classes

9 years agolinked packages: fix rule generation
Michael Schroeder [Fri, 15 Jan 2016 15:15:41 +0000 (16:15 +0100)] 
linked packages: fix rule generation

Add multiple rules for different package names instead of ORing
them all together. I hope this works out better for our applications.

9 years agoAdd changes, bump version to 0.6.17 0.6.17
Michael Schroeder [Tue, 22 Dec 2015 10:50:00 +0000 (11:50 +0100)] 
Add changes, bump version to 0.6.17

9 years agoAdd back code to set specialupdaters for multiversion packages that should be updated
Michael Schroeder [Tue, 22 Dec 2015 10:48:24 +0000 (11:48 +0100)] 
Add back code to set specialupdaters for multiversion packages that should be updated

9 years agoAdd multiversion update testcase
Michael Schroeder [Tue, 22 Dec 2015 10:43:08 +0000 (11:43 +0100)] 
Add multiversion update testcase

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