summaryrefslogtreecommitdiff
path: root/src/util/testdb.c
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-08-17 19:30:36 +0200
committerDan McGee <dan@archlinux.org>2008-08-25 18:08:52 -0500
commit070135626023caa0186a77f9f846c078e3cf1be8 (patch)
tree94b481f19572ad3d1812fee8cd331c84ccfa0f0e /src/util/testdb.c
parent9dbe5c9d1ee5fb00f25515dfb5a2feb3ae6ebd59 (diff)
Change checkdeps and checkdbconflicts to be more flexible.
These two functions now take directly a package list rather than a database. checkdbconflicts was renamed to checkconflicts. Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Diffstat (limited to 'src/util/testdb.c')
-rw-r--r--src/util/testdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/testdb.c b/src/util/testdb.c
index 87bfcf96..94f9ad73 100644
--- a/src/util/testdb.c
+++ b/src/util/testdb.c
@@ -135,7 +135,8 @@ int main(int argc, char **argv)
/* check dependencies */
alpm_list_t *data;
- data = alpm_checkdeps(db, 0, NULL, alpm_db_getpkgcache(db));
+ alpm_list_t *pkglist = alpm_db_getpkgcache(db);
+ data = alpm_checkdeps(pkglist, 0, NULL, pkglist);
for(i = data; i; i = alpm_list_next(i)) {
pmdepmissing_t *miss = alpm_list_getdata(i);
pmdepend_t *dep = alpm_miss_get_dep(miss);
@@ -146,7 +147,7 @@ int main(int argc, char **argv)
}
/* check conflicts */
- data = alpm_checkdbconflicts(db);
+ data = alpm_checkconflicts(pkglist);
for(i = data; i; i = i->next) {
pmconflict_t *conflict = alpm_list_getdata(i);
printf("%s conflicts with %s\n", alpm_conflict_get_package1(conflict),