Track unresolvable transaction packages
commit40a264478e65c652f863b3e43b0fc8aa10f0bd19
authorDan McGee <dan@archlinux.org>
Wed, 28 Sep 2011 06:53:43 +0000 (28 01:53 -0500)
committerDan McGee <dan@archlinux.org>
Wed, 28 Sep 2011 09:52:37 +0000 (28 04:52 -0500)
tree4f0774d7e13583dca6a3e181d29f0e9c38dc009b
parent6e081a0c57f0f6f14428f7cb78bb22f6848fe4af
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 <dan@archlinux.org>
lib/libalpm/sync.c
lib/libalpm/trans.c
lib/libalpm/trans.h