From 0c43198ee0817d7acea47ea5d15b4704db78308f Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 1 Aug 2014 14:19:47 -0700 Subject: dep_graph_init: filter ignored packages by name Ignored packages are from the transaction remove list which consists of duplicated packages so a direct pointer comparison is not appropriate. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/deps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 1cbbc5f6..adbccd1e 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -106,7 +106,7 @@ static alpm_list_t *dep_graph_init(alpm_handle_t *handle, alpm_list_t *i, *j; alpm_list_t *vertices = NULL; alpm_list_t *localpkgs = alpm_list_diff( - alpm_db_get_pkgcache(handle->db_local), ignore, ptr_cmp); + alpm_db_get_pkgcache(handle->db_local), ignore, _alpm_pkg_cmp); /* We create the vertices */ for(i = targets; i; i = i->next) { -- cgit v1.2.3-70-g09d2