diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2008-08-17 19:30:36 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-25 18:08:52 -0500 |
commit | 070135626023caa0186a77f9f846c078e3cf1be8 (patch) | |
tree | 94b481f19572ad3d1812fee8cd331c84ccfa0f0e /lib/libalpm/add.c | |
parent | 9dbe5c9d1ee5fb00f25515dfb5a2feb3ae6ebd59 (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 'lib/libalpm/add.c')
-rw-r--r-- | lib/libalpm/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 3c832b3e..50405895 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -114,7 +114,7 @@ int _alpm_add_prepare(pmtrans_t *trans, pmdb_t *db, alpm_list_t **data) /* look for unsatisfied dependencies */ _alpm_log(PM_LOG_DEBUG, "looking for unsatisfied dependencies\n"); - lp = alpm_checkdeps(db, 1, NULL, trans->packages); + lp = alpm_checkdeps(_alpm_db_get_pkgcache(db), 1, NULL, trans->packages); if(lp != NULL) { if(data) { *data = lp; |