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

Re: Seeking for Help on resolving a symlink problem in icewm



On Mon, Jul 30, 2001 at 01:53:59PM +0200, Jérôme Marant wrote:
> Colin Watson <cjwatson@debian.org> writes:
> > The usual solution is to move the old documentation directory to a safe
> > place (e.g. /usr/share/doc/icewm.deleteme) in the preinst, and remove
> > that directory if it exists in the postinst. This then allows you to
> > roll back safely if something goes wrong. Alternatively, you could move
> > the directory to its new home in the preinst and again roll back if
> > necessary.
> > 
> > For example, see the way that groff-base turns
> > /usr/share/groff/site-tmac into a symlink to /etc/groff.
> 
>   Thanks ! This is nice and smart.
> 
>   However, I don't see exactly how/where do you see roll back.
>   Do you mean manual rollback or automated rollback in maintainer scripts
>   thanks to abort-* parameters ?

I mean automatic rollback by way of abort-* in the postrm. You can check
there whether your *.deleteme or *.moved-by-preinst or whatever exists
and revert to the previous state if so.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: