[Rpm-maint] [PATCH 0/5] Add Collection Support

Panu Matilainen pmatilai at laiskiainen.org
Fri Jun 18 12:46:27 UTC 2010

On Thu, 17 Jun 2010, Steve Lawrence wrote:

> This patchset adds Collection support to rpm. Collections provide a way to
> perform a common action after all members of that collection have been
> installed. This removes duplicated post installation scripts that only need to
> be executed once during a transaction.
> For example, currently all font packages run /usr/bin/fc-cache in the %post
> section. With collections, we can add all these font packages to the 'font'
> collection, and remove the %post section. Once all members of the 'font'
> collection are install, only then will fc-cache be run.
> To perform collection actions, this patchset adds a minimal plugin system that
> allows for both simple and complex collection actions. This system adds three
> hooks that are executed at various stages of the RPM transaction to allow for
> a wide range of control and flexibility. Included in this patchset is a generic
> plugin that can be used to easily execute scripts, which should be sufficient
> for the majority of collection actions.

Now you're talking :) This is exactly the kind of "generic mechanism" that 
benefits far more than just selinux that I've been wanting. I've zero 
objections to the concept as a whole, quite on the contrary: this is one 
of the most wished for rpm features in recent times.

What I think does need further thought/discussion is how the collection 
data is stored and some other ideas/ponderings .. more detailed commentary 
on the individual patches to follow. Details aside, big kudos for this. 
It's something I definately want to get merged, the sooner the better.

 	- Panu -

More information about the Rpm-maint mailing list