[Pkg-lyx-devel] svn commit: r405 - in /lyx/trunk/debian: changelog lyx-common.preinst

Sven Hoexter sven at timegate.de
Mon Dec 10 09:54:24 UTC 2007


On Mon, Dec 10, 2007 at 09:46:12AM -0000, hoaxter-guest at users.alioth.debian.org wrote:

> --- lyx/trunk/debian/lyx-common.preinst (added)
> +++ lyx/trunk/debian/lyx-common.preinst Mon Dec 10 09:46:11 2007
> @@ -1,0 +1,7 @@
> +#!/bin/sh -e
> +
> +if [ -f /etc/lyxrc ]; then
> +    rm -f /etc/lyxrc
> +fi
> +
> +#DEBHELPER#
> 

Note: I'm not sure if it's the right way to do it. If I had a personal lyxrc
file I would be pissed if it gets simply removed.
Making a .bak copy or something like this could be an option in conjunction
with a md5sum comparison to check if someone ever touched it.

Another option could be to only remove it on a purge in the postrm script but
that would still leave us with an undefined number of systems with a lost file
which isn't owned by any package. That in turn makes it hard to remove this
workaround from the postrm script later.

Adding a debconf dialog to ask the user if we should remove it would be
overkill I guess.

Sven
-- 
There's no need for tears, cause there's no need to cry.
That love that you leave will never be denied.
     [ Flogging Molly - Laura ]
Gebuehrenboykott 2008 BU WTAL http://www.boykott-wuppertal.de



More information about the Pkg-lyx-devel mailing list