From 1fcc49675640acc14ee50549d0143c5b8164bdf8 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 25 Feb 2011 09:22:09 -0500 Subject: alpm: alpm_db_get_pkgcache_list => alpm_db_get_pkgcache This avoids needless breakage of the public API. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- src/util/pactree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/pactree.c') diff --git a/src/util/pactree.c b/src/util/pactree.c index 947ed61c..6a10006f 100644 --- a/src/util/pactree.c +++ b/src/util/pactree.c @@ -303,7 +303,7 @@ static void walk_deps(pmpkg_t *pkg, int depth) for(i = alpm_pkg_get_depends(pkg); i; i = alpm_list_next(i)) { pmdepend_t *depend = alpm_list_getdata(i); - pmpkg_t *provider = alpm_find_satisfier(alpm_db_get_pkgcache_list(db_local), + pmpkg_t *provider = alpm_find_satisfier(alpm_db_get_pkgcache(db_local), alpm_dep_get_name(depend)); if(provider) { @@ -347,7 +347,7 @@ int main(int argc, char *argv[]) /* we only care about the first non option arg for walking */ target_name = argv[optind]; - pkg = alpm_find_satisfier(alpm_db_get_pkgcache_list(db_local), target_name); + pkg = alpm_find_satisfier(alpm_db_get_pkgcache(db_local), target_name); if(!pkg) { fprintf(stderr, "error: package '%s' not found\n", target_name); ret = 1; -- cgit v1.2.3-54-g00ecf