]>
git.ipfire.org Git - thirdparty/libsolv.git/log
Michael Schroeder [Thu, 26 Feb 2015 17:02:01 +0000 (18:02 +0100)]
Rework branch handling
We now store more information for introspection. Also, some
bugs in the auto-minimization code have been fixed.
Michael Schroeder [Wed, 25 Feb 2015 12:23:01 +0000 (13:23 +0100)]
Cleaned up branch creation code
Michael Schroeder [Wed, 25 Feb 2015 11:01:22 +0000 (12:01 +0100)]
Support userinstalled flags in pool_deb_get_autoinstalled
(This is so that we can support a name+arch flag later)
Michael Schroeder [Tue, 24 Feb 2015 18:00:00 +0000 (19:00 +0100)]
Add testcases for the last change
Michael Schroeder [Tue, 24 Feb 2015 17:56:48 +0000 (18:56 +0100)]
Improve package choosing code
Multiple changes:
- we no longer prune to suggests/enhances, instead we move them
to the front so that a branch is created. This enables auto-minimization
later on.
- we de-prefer old versions, i.e. packages that have an update candidate.
- If there are common versioned dependencies, we use them to order
the packages.
Michael Schroeder [Tue, 24 Feb 2015 17:55:20 +0000 (18:55 +0100)]
Add debug output for branch creation
Michael Schroeder [Thu, 19 Feb 2015 15:04:39 +0000 (16:04 +0100)]
another REL_COMPAT special case
Michael Schroeder [Wed, 18 Feb 2015 15:20:48 +0000 (16:20 +0100)]
chain comparison ops with REL_COMPAT
Michael Schroeder [Wed, 18 Feb 2015 13:23:34 +0000 (14:23 +0100)]
switch to new testcase dependency format
No more dependency rewiting, plus support for complex deps.
Note that we can no longer support the .arch suffix, as many
dependency names contain a '.' and we don't know all valid
architectures. So you need to use 'name . arch' instead of
'name.arch'.
Michael Schroeder [Wed, 18 Feb 2015 12:42:11 +0000 (13:42 +0100)]
Add repo version info to namespaceprovides.t
Michael Schroeder [Tue, 3 Feb 2015 13:21:55 +0000 (14:21 +0100)]
add experimental pool_deb_get_autoinstalled
This can be used to read the autoinstalled package list from
/var/lib/apt/extended_states. Note that the pool must have
the whatprovides hash in place for this to work.
Michael Schroeder [Mon, 2 Feb 2015 15:22:15 +0000 (16:22 +0100)]
do not ignore the only repodata we have
Michael Schroeder [Thu, 29 Jan 2015 14:16:43 +0000 (15:16 +0100)]
rename DEB_DEBSTATUS to SOLVABLE_INSTALLSTATUS
Also move it to the end of knownid to not break the ABI.
Michael Schroeder [Thu, 29 Jan 2015 14:06:05 +0000 (15:06 +0100)]
Merge pull request #68 from kirgene/deb-status
Save "Status" field of debian packages during parsing of packages list.
Yevhen Kyriukha [Thu, 29 Jan 2015 02:03:04 +0000 (04:03 +0200)]
Save "Status" field of debian packages during parsing of packages list.
When populating packages from "/var/lib/dpkg/status" into repo that should be marked as "installed repo",
there should be possible to filter partially installed packages based on their "Status" field.
This commit makes saving this field for later manual filtering.
Michael Schroeder [Wed, 21 Jan 2015 12:28:21 +0000 (13:28 +0100)]
fix solver_addpkgrulesforweak missing some splitprovide packages
This was because the updatemap gets extended when the dup rules
are created, but the map already gets used in solver_splitprovides.
So temporarily set updatemap_all in that case.
Michael Schroeder [Thu, 15 Jan 2015 10:09:46 +0000 (11:09 +0100)]
rich deps: use f[i] instead of flags
Found by Lubos Kardos.
Michael Schroeder [Wed, 14 Jan 2015 12:07:58 +0000 (13:07 +0100)]
add parser for rpm rich deps
This is work in progress, the rpm format may still change. Also,
THEN/ELSE ops are not yet supported.
Michael Schroeder [Wed, 14 Jan 2015 11:11:10 +0000 (12:11 +0100)]
make build with ENABLE_COMPLEX_DEPS work again
Michael Andres [Wed, 14 Jan 2015 08:02:54 +0000 (09:02 +0100)]
add changes, bump version to 0.6.8
Klaus Kämpf [Wed, 14 Jan 2015 07:20:12 +0000 (08:20 +0100)]
Fix spec url (gitorious -> github)
Klaus Kämpf [Wed, 14 Jan 2015 07:17:21 +0000 (08:17 +0100)]
Merge pull request #65 from kkaempf/fix_comment_characters
Fix comment characters (# -> /* ... */)
Klaus Kämpf [Wed, 14 Jan 2015 07:08:02 +0000 (08:08 +0100)]
Fix comment characters (# -> /* ... */)
Michael Andres [Fri, 19 Dec 2014 10:50:24 +0000 (11:50 +0100)]
Merge pull request #62 from openSUSE/bnc#896224
Bnc#896224 - add product:regflavor attribute
Michael Andres [Fri, 19 Dec 2014 08:04:05 +0000 (09:04 +0100)]
add changes, bump version to 0.6.7
Michael Andres [Fri, 19 Dec 2014 08:03:17 +0000 (09:03 +0100)]
add product:regflavor attribute [bnc#896224]
Michael Schroeder [Mon, 15 Dec 2014 15:11:15 +0000 (16:11 +0100)]
save and restore branches when creating solutions
Michael Schroeder [Fri, 7 Nov 2014 15:19:50 +0000 (16:19 +0100)]
disable build of the solv tool for unsupported system types
Also gets rid of the no longer used NOSYSTEM.
Michael Schroeder [Thu, 9 Oct 2014 13:27:22 +0000 (15:27 +0200)]
Document pool_setdisttype return value
Michael Schroeder [Thu, 9 Oct 2014 13:22:15 +0000 (15:22 +0200)]
always provide pool_setdisttype
Also return an error for unsupported distributions.
Michael Schroeder [Tue, 7 Oct 2014 12:41:37 +0000 (14:41 +0200)]
add changes, bump version to 0.6.6
Michael Schroeder [Mon, 6 Oct 2014 15:19:13 +0000 (17:19 +0200)]
fix bug in reorder_dq_for_jobrules
The next level is actually "level + 1", so by using level we punch
zeros in our decisionmap leading to some nasty bugs later on
(e.g. when we need to revert).
Michael Schroeder [Mon, 29 Sep 2014 09:29:20 +0000 (11:29 +0200)]
rename rpm rules to pkg rules
Long overdue as we support debian/haiku/arch since a long time now.
No ABI change, as we have legacy defines.
Michael Schroeder [Thu, 25 Sep 2014 14:53:06 +0000 (16:53 +0200)]
The last tools manpages
Michael Schroeder [Wed, 24 Sep 2014 16:42:21 +0000 (18:42 +0200)]
even more manpages
Michael Schroeder [Wed, 24 Sep 2014 16:29:22 +0000 (18:29 +0200)]
add more man pages
Michael Schroeder [Tue, 23 Sep 2014 14:26:22 +0000 (16:26 +0200)]
Merge pull request #57 from akozumpl/master
repo_rpmdb's freestate() can free rootdir only after closedbenv() finish...
Ales Kozumplik [Tue, 23 Sep 2014 12:19:22 +0000 (14:19 +0200)]
repo_rpmdb's freestate() can free rootdir only after closedbenv() finishes.
Because serialize_dbenv_ops() still uses rootdir.
Michael Schroeder [Mon, 22 Sep 2014 16:25:43 +0000 (18:25 +0200)]
Start adding man-pages for the tools
Mike Gabriel [Mon, 22 Sep 2014 15:40:39 +0000 (17:40 +0200)]
Fix grammar and spelling errors in man pages
Mike Gabriel [Mon, 22 Sep 2014 15:37:53 +0000 (17:37 +0200)]
Provide support for multi-arch include directory
Michael Schroeder [Mon, 22 Sep 2014 12:37:28 +0000 (14:37 +0200)]
remove strange livsolv-tools requires from the devel package
Michael Schroeder [Wed, 17 Sep 2014 11:50:18 +0000 (13:50 +0200)]
Tweak the README (suggested by Michael Tautschnig)
Michael Schroeder [Tue, 16 Sep 2014 12:47:35 +0000 (14:47 +0200)]
make sure that we have a dirid when adding du data
Michael Schroeder [Thu, 11 Sep 2014 15:38:43 +0000 (17:38 +0200)]
add changes, bump version to 0.6.5
Michael Schroeder [Thu, 11 Sep 2014 15:17:25 +0000 (17:17 +0200)]
support flags in DUChanges struct, support DUCHANGES_ONLYADD flag
This was done for btrfs, which doesn't free disk space if the
overwritten files are on a snapshop. In this case, we only add the
new needed space.
The code also uses installed package with the same name or an
obsoleted package if no du data is available.
This is actually a API change, a new element to the struct had
to be added. Fortunately only libzypp uses this function, and
libzypp is linked against a static version of libsolv.
Michael Schroeder [Fri, 5 Sep 2014 13:39:43 +0000 (15:39 +0200)]
add whatmatchesdep to bindings
Michael Schroeder [Fri, 29 Aug 2014 12:00:07 +0000 (14:00 +0200)]
get rid of different const qualifiers warning
Michael Schroeder [Fri, 29 Aug 2014 11:10:14 +0000 (13:10 +0200)]
get rid of a couple of warnings for msvc
Michael Schroeder [Thu, 31 Jul 2014 14:17:29 +0000 (16:17 +0200)]
support pool->considered in testcases
Michael Schroeder [Tue, 29 Jul 2014 09:38:20 +0000 (11:38 +0200)]
rename split to yumobs
Michael Schroeder [Tue, 29 Jul 2014 09:37:19 +0000 (11:37 +0200)]
Merge pull request #48 from akozumpl/master
Add a testcase for SOLVER_FLAG_YUM_OBSOLETES splits.
Ales Kozumplik [Tue, 29 Jul 2014 08:04:01 +0000 (10:04 +0200)]
Add a testcase for SOLVER_FLAG_YUM_OBSOLETES splits.
Michael Schroeder [Mon, 28 Jul 2014 11:59:07 +0000 (13:59 +0200)]
Merge pull request #47 from akozumpl/master
Free a forgotten queue in solver_addyumobsrules().
Ales Kozumplik [Mon, 28 Jul 2014 11:52:37 +0000 (13:52 +0200)]
Free a forgotten queue in solver_addyumobsrules().
Michael Schroeder [Fri, 25 Jul 2014 16:22:43 +0000 (18:22 +0200)]
support yum style obsolete handling for package splits
Actually slightly modified: we insist that the dependencies in
the split group are exactly identical. Let's see how this works
out in practice...
Michael Schroeder [Fri, 25 Jul 2014 15:52:55 +0000 (17:52 +0200)]
repo_arch: fix bad space skipping code
Credits to dcb314 for noticing.
Michael Schroeder [Fri, 18 Jul 2014 14:59:46 +0000 (16:59 +0200)]
fix potential memory leak in makemultiversionconflict()
Michael Schroeder [Mon, 14 Jul 2014 11:37:18 +0000 (13:37 +0200)]
always call selection_filelist if SELECTION_FILELIST is set
Also checks for impossible matches in selection_filelist.
Michael Schroeder [Mon, 14 Jul 2014 11:24:55 +0000 (13:24 +0200)]
testsolv: only use SELECTION_FILELIST if the arg starts with a '/'
Michael Schroeder [Tue, 8 Jul 2014 12:14:59 +0000 (14:14 +0200)]
add changes, bump version
Michael Schroeder [Tue, 8 Jul 2014 12:11:18 +0000 (14:11 +0200)]
tweak solver_identical so that applications ignore requires
Fixes bug 885830.
Michael Schroeder [Tue, 8 Jul 2014 12:09:48 +0000 (14:09 +0200)]
fix instbuddy generation code
we iterated over the wrong array, thus the rpm -> buddy link
did not work.
Michael Schroeder [Tue, 24 Jun 2014 11:41:26 +0000 (13:41 +0200)]
add '-m' option to test the solution callback
Michael Schroeder [Tue, 24 Jun 2014 11:40:02 +0000 (13:40 +0200)]
rework branch handling so that the old decisions are still available
This allows us to auto-minimize packages that got supplemented
later on.
Michael Schroeder [Mon, 23 Jun 2014 14:44:48 +0000 (16:44 +0200)]
support -X option in rpmmd2solv, make add_autopattern available in bindings
Michael Andres [Fri, 13 Jun 2014 10:16:27 +0000 (12:16 +0200)]
changes 0.6.3
Michael Andres [Fri, 13 Jun 2014 06:27:27 +0000 (08:27 +0200)]
[hotfix] Relax solvable_identical check for producs [bnc#881493]
Michael Andres [Fri, 6 Jun 2014 09:40:58 +0000 (11:40 +0200)]
changes 0.6.2
Michael Andres [Fri, 6 Jun 2014 09:40:27 +0000 (11:40 +0200)]
Provide PRODUCT_REGISTER_TARGET for available products [bnc#881320]
Michael Schroeder [Tue, 3 Jun 2014 14:31:15 +0000 (16:31 +0200)]
fix bugs in solver_describe_decision and solver_describe_weakdep_decision
Michael Schroeder [Fri, 16 May 2014 14:54:32 +0000 (16:54 +0200)]
repo_appdata: add missing break statement
Michael Schroeder [Thu, 15 May 2014 12:48:30 +0000 (14:48 +0200)]
add the SOLVER_FLAG_FOCUS_INSTALLED solver flag
Setting this flag means that the solver will prefer picking
a package version that fits the other installed packages
over updating installed packages.
Michael Schroeder [Wed, 14 May 2014 15:07:28 +0000 (17:07 +0200)]
add a 'g' to the sed line
Michael Schroeder [Wed, 14 May 2014 13:50:11 +0000 (15:50 +0200)]
use sed instead of grep to get rid of the <?xml...> line
This allows us to parse files with no newlines.
Michael Schroeder [Wed, 7 May 2014 12:32:14 +0000 (14:32 +0200)]
opencode some values in pool_id2rel (thanks Thierry Vignaud)
Michael Schroeder [Fri, 2 May 2014 08:43:11 +0000 (10:43 +0200)]
add #ifdef FEDORA lines
Michael Schroeder [Fri, 2 May 2014 08:39:05 +0000 (10:39 +0200)]
Merge pull request #44 from akozumpl/archs
Add a couple of architectures.
Ales Kozumplik [Wed, 30 Apr 2014 07:29:09 +0000 (09:29 +0200)]
Add a couple of architectures.
The Fedora rel-eng team missed ia32e, amd64, athlon, geode, ppc64iseries
and ppc64pseries.
Michael Schroeder [Tue, 22 Apr 2014 16:19:07 +0000 (18:19 +0200)]
obey droporphaned map in keep_orhans mode
Michael Schroeder [Thu, 17 Apr 2014 12:49:33 +0000 (14:49 +0200)]
add changes, bump version
Michael Schroeder [Thu, 17 Apr 2014 12:18:42 +0000 (14:18 +0200)]
implement SOLVER_FLAG_BREAK_ORPHANS
Michael Schroeder [Thu, 17 Apr 2014 09:23:12 +0000 (11:23 +0200)]
adapt to AppStream 0.6
Michael Schroeder [Wed, 16 Apr 2014 13:15:42 +0000 (15:15 +0200)]
add KEEP_ORPHANS and BREAK_ORPHANS solver flags
BREAK_ORPHANS is not implemented yet
Michael Schroeder [Wed, 16 Apr 2014 11:57:24 +0000 (13:57 +0200)]
repodata_swap_attrs: make sure src and dest are in the repodata
Michael Schroeder [Wed, 16 Apr 2014 11:56:41 +0000 (13:56 +0200)]
remove unneded repodata_extend calls
Michael Schroeder [Tue, 15 Apr 2014 16:01:31 +0000 (18:01 +0200)]
also check for read-only rpm db in /usr/share/rpm (ostree)
Michael Schroeder [Mon, 14 Apr 2014 17:05:59 +0000 (19:05 +0200)]
fix type introduced in commit #
bbdec95b
Also makes the code deal correctly with non-canonicalized
filename dependencies.
Michael Schroeder [Mon, 14 Apr 2014 13:49:33 +0000 (15:49 +0200)]
add a single space
Michael Schroeder [Mon, 14 Apr 2014 12:07:38 +0000 (14:07 +0200)]
small optimization for pool_addfileprovides
Should use less memory and be a tiny bit faster. The code is
a bit simpler as well.
Michael Schroeder [Wed, 9 Apr 2014 13:03:14 +0000 (15:03 +0200)]
use less memory when just writing the filelist
Michael Schroeder [Tue, 8 Apr 2014 17:04:11 +0000 (19:04 +0200)]
free memory on the fly in repodata_internalize
makes the code only slightly slower, but helps a lot with oversized
repositories like Fedora Everything...
Michael Schroeder [Tue, 8 Apr 2014 09:43:06 +0000 (11:43 +0200)]
make repodata_stringify return the result string
This is in preparation of stringify no longer patching
the str element in the kv.
Michael Schroeder [Mon, 7 Apr 2014 13:39:50 +0000 (15:39 +0200)]
add changes, bump version
Michael Schroeder [Mon, 7 Apr 2014 11:45:24 +0000 (13:45 +0200)]
use "implicitobsoleteusescolors" to limit our update/feature rules
We will only consider packages of the same color as update candidate.
This currently also is true for the feature rules, thus the solver
will not offer to use replacement packages of a different color.
Let's see how this works out in real life...
Michael Schroeder [Mon, 7 Apr 2014 11:06:33 +0000 (13:06 +0200)]
add "just in case" code if our multiplier gets too big
I don't think that this can happen the way we use the modulo
code, but I feel somewhat safer with the check in place...
Michael Schroeder [Mon, 7 Apr 2014 11:01:43 +0000 (13:01 +0200)]
also simplify solvable_copy_cb's checksum handling
Michael Schroeder [Mon, 7 Apr 2014 10:50:06 +0000 (12:50 +0200)]
simplyfy checksum code
Also change dumpsolv to use solv_chksum_type2str instead of printing
the internal type.
Michael Schroeder [Mon, 7 Apr 2014 10:49:08 +0000 (12:49 +0200)]
support "notbyuser" in testcases
Michael Schroeder [Fri, 4 Apr 2014 16:46:07 +0000 (18:46 +0200)]
do not count problem resolution install jobs as userinstalled