From 1c28e29eb4b0e310616b80fa8979ecc53b3a052b Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 2 Apr 2005 20:33:11 +0000 Subject: added support for PACKAGES field in alpm_trans_getinfo --- lib/libalpm/alpm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index c8c8f3e1..96ca1be5 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -480,9 +480,10 @@ void *alpm_trans_getinfo(unsigned char parm) trans = handle->trans; switch(parm) { - case PM_TRANS_TYPE: data = (void *)(int)trans->type; break; - case PM_TRANS_FLAGS: data = (void *)(int)trans->flags; break; - case PM_TRANS_TARGETS: data = trans->targets; break; + case PM_TRANS_TYPE: data = (void *)(int)trans->type; break; + case PM_TRANS_FLAGS: data = (void *)(int)trans->flags; break; + case PM_TRANS_TARGETS: data = trans->targets; break; + case PM_TRANS_PACKAGES: data = trans->packages; break; default: data = NULL; break; -- cgit v1.2.3-24-g4f1b