pmsyncpkg_t cleanup
commit1fc83f4af6d827bf2e69c7a10e3d2010c9211974
authorNagy Gabor <ngaba@bibl.u-szeged.hu>
Sun, 27 Jan 2008 11:24:50 +0000 (27 12:24 +0100)
committerDan McGee <dan@archlinux.org>
Sun, 27 Jan 2008 18:05:33 +0000 (27 12:05 -0600)
treee19a2c3e8f84bbc3e7f63c5967d35bd5c635bb7f
parent9fbb77c91ba411fa46b1f2955893e7a39291f46a
pmsyncpkg_t cleanup

Fix for sync044.py and reason001.py.
Rename sync->data to sync->removes (alpm_list_t *)
Replace pmsynctype_t sync->type by pmpkgreason_t sync->newreason

The type field was set to UPGRADE or DEPEND or REPLACE.
Instead of using type = UPGRADE or DEPEND, we now rather use a
"pmpkgreason_t newreason" field directly (= explicit or depend) which allows
a better handling of the install reason.
And the REPLACE type is now deduced implicitly when the sync->removes list
is not empty.

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/alpm.h
lib/libalpm/sync.c
lib/libalpm/sync.h
src/pacman/util.c