summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-12-14 08:55:14 +0100
committerDan McGee <dan@archlinux.org>2007-12-21 18:05:44 +0100
commitb4a84e4f1d0dcb0e2292efece2e1c76b53c76a3b (patch)
tree427e03835a69da4e1cdaf1c2179aa245fcd3dfde /src/util
parent741fa316038eb0307e4aaffcac05eaa36303ead9 (diff)
downloadpacman-b4a84e4f1d0dcb0e2292efece2e1c76b53c76a3b.tar.gz
pacman-b4a84e4f1d0dcb0e2292efece2e1c76b53c76a3b.tar.xz
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>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/testdb.c3
1 files changed, 1 insertions, 2 deletions
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);