diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-07-06 01:22:13 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-07-08 04:12:55 +0200 |
commit | 72c0ab5c51d5119b6f81c768b1a0f6ff499df292 (patch) | |
tree | d9aa493307a37238c11cb9ba8093efe42f4d8cab /pactest/pmdb.py | |
parent | 8856146d71cb4cc512b0cf3414fbc231635822d3 (diff) | |
download | pacman-72c0ab5c51d5119b6f81c768b1a0f6ff499df292.tar.gz pacman-72c0ab5c51d5119b6f81c768b1a0f6ff499df292.tar.xz |
Resolvedeps rework
I divided resolvedeps into 2 functions. The new _alpm_resolvedep function
will resolve one dependency, for example the 'foo>=1.0-1' dependency. It
can be useful in sync_addtarget refactoring.
The resolvedeps parameters were changed, to be coherent with recursedeps:
* the target-list is an alpm_list* instead of alpm_list**. This is OK,
because alpm_list_add == alpm_list_add_last
* syncpkg param was removed. list contains the to-be-installed packages,
resolvedeps will add the required dependencies into this list
* trans param was removed, it was used in QUESTION() only, which can be used
on the main (handle->trans) transaction only (because the front-end cannot
access our pseudo-transactions at all!).
The patch fixes some wrong dynamic pmdepmissing_t usage.
I did a behavior change (and sync1003.py was modified accordingly), which
needs some explanation: The old resolvedeps didn't elect packages from
'remove' list. I've dropped this because I don't want that 2nd excluding
list param. In fact, in real life, we ~never need this rule. Resolvedeps is
called before checkconflicts, so only -Su's %REPLACES% packages are sitting
in 'remove' list. This means, that we have the replacement packages in our
target list. Usually "foo replaces bar" means, that bar isn't in our repos
any more, so resolvedeps *cannot* elect it; but usually it won't try it at
all, because foo is in the target list, and it is expected to satisfy
'bar>=1.0-1'-like dependencies too. Since checkdeps and checkconflicts is
done after resolvedeps, this cannot cause any harm.
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/pmdb.py')
0 files changed, 0 insertions, 0 deletions