1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

testdb : fix wrong usage of checkdeps.

During last rebase where the checkdeps prototype changed, I messed up the
arguments order (remove list, then upgrade list). That made testdb totally
useless.
Also remove the newline that was manually added by the log callback.

Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Chantry Xavier 2007-12-14 08:55:14 +01:00 committed by Dan McGee
parent 741fa31603
commit b4a84e4f1d

View File

@ -54,7 +54,6 @@ void output_cb(pmloglevel_t level, char *fmt, va_list args)
default: return;
}
vprintf(fmt, args);
printf("\n");
}
}
@ -138,7 +137,7 @@ int main(int argc, char **argv)
/* check dependencies */
alpm_list_t *data;
data = alpm_checkdeps(db, 0, alpm_db_getpkgcache(db), NULL);
data = alpm_checkdeps(db, 0, NULL, alpm_db_getpkgcache(db));
for(i = data; i; i = alpm_list_next(i)) {
pmdepmissing_t *miss = alpm_list_getdata(i);
pmdepend_t *dep = alpm_miss_get_dep(miss);