Add handle argument to alpm_(add|remove)_pkg()
commitfb3ad7f8823dd3300528b44427d40e17594b1400
authorDan McGee <dan@archlinux.org>
Thu, 9 Jun 2011 21:00:55 +0000 (9 16:00 -0500)
committerDan McGee <dan@archlinux.org>
Tue, 14 Jun 2011 00:32:59 +0000 (13 19:32 -0500)
tree8932518e67553383a178d23fcdd07beb24dc801e
parent01ad3faee934aa805237bf5405e7c74dc1482a17
Add handle argument to alpm_(add|remove)_pkg()

This makes these functions consistent with the rest of the transaction
related API calls. We do an additional assert to ensure the handle
attached to the package is the same as the handle passed in.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/add.c
lib/libalpm/alpm.h
lib/libalpm/remove.c
src/pacman/remove.c
src/pacman/sync.c
src/pacman/upgrade.c