diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-09 23:00:55 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-14 02:32:59 +0200 |
commit | fb3ad7f8823dd3300528b44427d40e17594b1400 (patch) | |
tree | 8932518e67553383a178d23fcdd07beb24dc801e /src/pacman/sync.c | |
parent | 01ad3faee934aa805237bf5405e7c74dc1482a17 (diff) | |
download | pacman-fb3ad7f8823dd3300528b44427d40e17594b1400.tar.gz pacman-fb3ad7f8823dd3300528b44427d40e17594b1400.tar.xz |
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>
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r-- | src/pacman/sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 4cd8d212..57fec4bc 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -620,7 +620,7 @@ static pmdb_t *get_db(const char *dbname) static int process_pkg(pmpkg_t *pkg) { - int ret = alpm_add_pkg(pkg); + int ret = alpm_add_pkg(config->handle, pkg); if(ret == -1) { if(pm_errno == PM_ERR_TRANS_DUP_TARGET |