[Pkg-lyx-devel] [SCM] LyX packaging branch, master, updated. upstream/2.0.0_beta4-530-g7ac3280
Sven Hoexter
sven at timegate.de
Sat Feb 19 17:18:39 UTC 2011
The following commit has been merged in the master branch:
commit 7ac3280dcc64ee1a1c5b01ebc37f40e3b20c17e8
Author: Sven Hoexter <sven at timegate.de>
Date: Sat Feb 19 15:49:06 2011 +0100
Check if we can find the old hints file first, otherwise we will bail out on new installs cause of -e
diff --git a/debian/ttf-lyx.preinst b/debian/ttf-lyx.preinst
index 379fd61..76ba4fb 100644
--- a/debian/ttf-lyx.preinst
+++ b/debian/ttf-lyx.preinst
@@ -3,9 +3,12 @@
set -e
CFILE='/etc/defoma/hints/ttf-lyx.hints'
-if dpkg-maintscript-helper supports rm_conffile; then
- dpkg-maintscript-helper rm_conffile $CFILE 2.0.0~beta4-1 -- "$@"
+
+if [ -f $CFILE ]; then
+ if dpkg-maintscript-helper supports rm_conffile; then
+ dpkg-maintscript-helper rm_conffile $CFILE 2.0.0~beta4-1 -- "$@"
+ fi
+ test -f $CFILE.dpkg-remove && rm $CFILE.dpkg-remove
fi
-test -f $CFILE.dpkg-remove && rm $CFILE.dpkg-remove
-#DEBHELPER#
\ No newline at end of file
+#DEBHELPER#
--
LyX packaging
More information about the Pkg-lyx-devel
mailing list