[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

post post installation hook



Hi,

i stumbled upon the following situation:

   1. Installed package A
   2. Update package A with a newer Version B
   3. oops :)


The problem is the specfile of package A does not work correctly
on updates. It removes a user which is needed for running the daemon
provided by the package.

But IIUC first the new package is installed and its pre/post scripts are
triggered. Then the old package is removed, therefor running its
preun/postun scripts. But this scripts will not behave correctly :(
leaving the new package in a dysfunctional state.

My question is now if there is some kind of final hook one can define
in the specfile of package B which is run as the last thing to correct
the broken deinstallation behaviour of package A?

Else if would have to write a shell wrapper which just does a simple

   1. erase package A
   2. install package B

This is possible, but imho feels quite kludgy.

thanks

   --lars



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]