Partial fix for the phonon/qt issue
commiteada558e12da1fd605d8c7401ec3c17a37fed9a9
authorNagy Gabor <ngaba@bibl.u-szeged.hu>
Mon, 17 May 2010 00:33:28 +0000 (17 02:33 +0200)
committerDan McGee <dan@archlinux.org>
Tue, 18 May 2010 16:33:00 +0000 (18 11:33 -0500)
treee6f20cb33c4a1a110c8fe4ba65a6dcbd2de89084
parentc6f0fc27eda31943e10e2a89e221796efb87dce9
Partial fix for the phonon/qt issue

This patch fixes the phonon/qt issue, if all to-be-upgraded packages are
explicit targets (ie. only not-yet-installed packages are pulled by
resolvedeps). This condition covers the most common situations, for example
it should hold with every -Su operation.

After this patch sync405.py passes, but sync406.py doesn't.

The work is inspired by the patch of Henning Garus, thanks for his work:
http://mailman.archlinux.org/pipermail/pacman-dev/2010-February/010429.html
(I moved the alpm_list_diff computation to sync.c in order to compute it
only once.)

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/deps.c
lib/libalpm/deps.h
lib/libalpm/sync.c
pactest/tests/sync405.py