From b4a84e4f1d0dcb0e2292efece2e1c76b53c76a3b Mon Sep 17 00:00:00 2001 From: Chantry Xavier Date: Fri, 14 Dec 2007 08:55:14 +0100 Subject: 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 Signed-off-by: Dan McGee --- src/util/testdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/util/testdb.c b/src/util/testdb.c index 92e14258..122a3fb5 100644 --- a/src/util/testdb.c +++ b/src/util/testdb.c @@ -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); -- cgit v1.2.3-24-g4f1b