From 40a264478e65c652f863b3e43b0fc8aa10f0bd19 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 28 Sep 2011 01:53:43 -0500 Subject: Track unresolvable transaction packages Rather than free them right away, keep the list on the transaction as we already do with add and remove lists. This is necessary because we may be manipulating pointers the frontend needs to refer to packages, and we are breaking our contract as stated in the alpm_add_pkg() documentation of only freeing packages at the end of a transaction. This fixes an issue found when refactoring the package list display code. Signed-off-by: Dan McGee --- lib/libalpm/trans.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/trans.h') diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h index a2be5a5c..38f45ff7 100644 --- a/lib/libalpm/trans.h +++ b/lib/libalpm/trans.h @@ -39,8 +39,9 @@ typedef enum _alpm_transstate_t { struct __alpm_trans_t { alpm_transflag_t flags; alpm_transstate_t state; - alpm_list_t *add; /* list of (alpm_pkg_t *) */ - alpm_list_t *remove; /* list of (alpm_pkg_t *) */ + alpm_list_t *unresolvable; /* list of (alpm_pkg_t *) */ + alpm_list_t *add; /* list of (alpm_pkg_t *) */ + alpm_list_t *remove; /* list of (alpm_pkg_t *) */ alpm_list_t *skip_remove; /* list of (char *) */ }; -- cgit v1.2.3-24-g4f1b