summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-02 20:33:11 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-02 20:33:11 +0000
commit1c28e29eb4b0e310616b80fa8979ecc53b3a052b (patch)
tree1b98f43fe76d123d3dbeec04d8c3fcd5f258fbb9 /lib
parent3dc36aa0e15b669883e88ee418bfaa3e53a58e3f (diff)
downloadpacman-1c28e29eb4b0e310616b80fa8979ecc53b3a052b.tar.xz
added support for PACKAGES field in alpm_trans_getinfo
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/alpm.c7
1 files 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;