mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-05 09:05:03 -05:00
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:
parent
43a2f63194
commit
0ff57350fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user