diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-01-27 12:24:50 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-27 12:05:33 -0600 |
commit | 1fc83f4af6d827bf2e69c7a10e3d2010c9211974 (patch) | |
tree | e19a2c3e8f84bbc3e7f63c5967d35bd5c635bb7f /lib/libalpm/sync.h | |
parent | 9fbb77c91ba411fa46b1f2955893e7a39291f46a (diff) | |
download | pacman-1fc83f4af6d827bf2e69c7a10e3d2010c9211974.tar.xz |
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>
Diffstat (limited to 'lib/libalpm/sync.h')
-rw-r--r-- | lib/libalpm/sync.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/sync.h b/lib/libalpm/sync.h index a6a3e74f..b71f0ef2 100644 --- a/lib/libalpm/sync.h +++ b/lib/libalpm/sync.h @@ -25,12 +25,12 @@ /* Sync package */ struct __pmsyncpkg_t { - pmsynctype_t type; + pmpkgreason_t newreason; pmpkg_t *pkg; - void *data; + alpm_list_t *removes; }; -pmsyncpkg_t *_alpm_sync_new(int type, pmpkg_t *spkg, void *data); +pmsyncpkg_t *_alpm_sync_new(pmpkgreason_t newreason, pmpkg_t *spkg, alpm_list_t *removes); void _alpm_sync_free(pmsyncpkg_t *data); int _alpm_sync_sysupgrade(pmtrans_t *trans, |