testdb: pass empty local pkglist to alpm_checkdeps

Passing the local package list to alpm_checkdeps as both the local
packages and packages to be upgraded did nothing but cause extra
overhead as the packages were all removed from the installed package
list because they were being upgraded.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2013-03-09 11:59:32 -05:00 committed by Allan McRae
parent 43a2f63194
commit 0ff57350fb
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ static int check_deps(alpm_list_t *pkglist)
alpm_list_t *data, *i;
int ret = 0;
/* check dependencies */
data = alpm_checkdeps(handle, pkglist, NULL, pkglist, 0);
data = alpm_checkdeps(handle, NULL, NULL, pkglist, 0);
for(i = data; i; i = alpm_list_next(i)) {
alpm_depmissing_t *miss = i->data;
char *depstring = alpm_dep_compute_string(miss->depend);