RPM

Comment 1 for bug 913626

Revision history for this message
In , Toshio (toshio-redhat-bugs) wrote :

Description of problem:

Sometimes it's possible to write rpm scriptlets that start operation in one scriptlet but finish operation in another. One concrete usage is when updating a cache after a type of rpm is installed. The program that is run to update the cache only needs to be run once so the rpm package can use %post and %postun to write out a file flagging that the cache-creating program needs to be run and then %posttrans can actually invoke the program if that file exists (and delete the file after running).

We need a place to store those files that pass state information from one rpm scriptlet to another. The FPC has recently approved use of subdirectories of /var/lib/rpm-state for a couple guidelines for this purpose. It would be nice to have one package that owns the /var/lib/rpm-state directory rather than multiple packages (each time a set of packages needs to save state). Could it be added to the rpm package?