[pacman-dev] [PATCH 04/11] dep_graph_init: filter ignored packages by name

Andrew Gregory andrew.gregory.8 at gmail.com
Fri Aug 1 17:19:47 EDT 2014


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 <andrew.gregory.8 at gmail.com>
---
 lib/libalpm/deps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 1cbbc5f..adbccd1 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) {
-- 
2.0.2


More information about the pacman-dev mailing list