From 7d37d9278d0ab6eb46ec4689c8091780382cbb95 Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Sun, 12 Aug 2007 22:26:54 +0200 Subject: Fix for sync1003 and sync1004 pactests checkdeps and resolvedeps now take both a remove list and an install list as arguments, allowing dependencies to be calculated correctly. This broke the sync990 pactest, but this pactest used dependencies and provides in an unusual way, so it has been changed. Dan: the sync990 pactest was just plain wrong. It didn't satisfy the dependencies correctly, so should never have succeeded. Signed-off-by: Chantry Xavier [Dan: some variable renaming, clarification in commit message] Signed-off-by: Dan McGee --- src/util/testdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/testdb.c b/src/util/testdb.c index ca10dd9f..31b4ff0d 100644 --- a/src/util/testdb.c +++ b/src/util/testdb.c @@ -140,7 +140,7 @@ int main(int argc, char **argv) /* check dependencies */ alpm_list_t *data; - data = alpm_checkdeps(db, PM_TRANS_TYPE_ADD, alpm_db_getpkgcache(db)); + data = alpm_checkdeps(db, 0, alpm_db_getpkgcache(db), NULL); 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-70-g09d2