Determine when to perform Collection actions
authorSteve Lawrence <slawrence@tresys.com>
Mon, 21 Jun 2010 21:04:37 +0000 (17:04 -0400)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 22 Jun 2010 08:12:43 +0000 (11:12 +0300)
commit85d89bafdca5ec04866f9a7ecabb735d292c5a25
tree31157801f8330c5571cfe6193036fd51178a51ef
parent04bdec775ac56c7673f87257306b23536a954474
Determine when to perform Collection actions

There are three times during a transaction when Collection actions can be
performed:

1) After the last time a member of a collection is either installed or removed
2) After the last time a member of a collection is installed only
3) Before the first time a member of a collection is removed only

This patch adds three lists to the rpmte structure to mark which transaction
elements fall into each of these groups, and the collections that caused that.
A new function is added to the TSM to scan through all the transaction elements
and update these lists. When a collection is added to one of these lists, it
signifies that when that transaction element is installed, the appropriate
action should be performed for that collection.
lib/rpmte.c
lib/rpmte.h
lib/rpmte_internal.h
lib/transaction.c