1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 07:48:50 -05:00

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 <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2014-08-01 14:19:47 -07:00 committed by Allan McRae
parent 22e478d203
commit 0c43198ee0

View File

@ -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) {