diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-03-09 11:59:32 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-03-10 09:01:56 +1000 |
commit | 0ff57350fbf359c9f0a6700da1f91250a1f9a239 (patch) | |
tree | 12e360ac5bce212e7c2aa0ed6414d97810c6c015 /src/util | |
parent | 43a2f6319455edadf9947d2e0fa9e68ea4e348ae (diff) | |
download | pacman-0ff57350fbf359c9f0a6700da1f91250a1f9a239.tar.xz |
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>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/testdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/testdb.c b/src/util/testdb.c index 7b08cb0d..073acc3b 100644 --- a/src/util/testdb.c +++ b/src/util/testdb.c @@ -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); |