[Pkg-lyx-devel] [SCM] LyX packaging branch, master, updated. upstream/2.0.0_beta3-499-ge6581cb
Sven Hoexter
sven at timegate.de
Thu Feb 3 10:52:17 UTC 2011
The following commit has been merged in the master branch:
commit e6581cb0584dcf96c5e1fd37a05af2a97cf1790c
Author: Sven Hoexter <sven at timegate.de>
Date: Thu Feb 3 11:52:07 2011 +0100
Remove lyx-common.postinst, lyx-common.preinst, lyx.preinst. All migrations supported within those scripts should be finished by now.
diff --git a/debian/changelog b/debian/changelog
index 08a8a8c..cae05af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,8 @@ lyx (2.0.0~beta3-2) UNRELEASED; urgency=low
Thanks Georg.
* Add debian/patches/hyphen-as-minus.
* Remove the latex-xft-fonts dummy package.
+ * Remove lyx-common.postinst, lyx-common.preinst, lyx.preinst. All
+ migrations supported within those scripts should be finished by now.
[ Per Olofsson ]
* Add debian/source/local-options with option unapply-patches.
diff --git a/debian/lyx-common.postinst b/debian/lyx-common.postinst
deleted file mode 100644
index 628ffc5..0000000
--- a/debian/lyx-common.postinst
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-rm -f /usr/share/lyx/lyxrc.defaults
-rm -f /usr/share/lyx/packages.lst
-rm -f /usr/share/lyx/textclass.lst
-
-#DEBHELPER#
diff --git a/debian/lyx-common.preinst b/debian/lyx-common.preinst
deleted file mode 100644
index f85b724..0000000
--- a/debian/lyx-common.preinst
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Remove a no-longer used conffile
-rm_conffile() {
- PKGNAME="$1"
- CONFFILE="$2"
-
- if [ -e "$CONFFILE" ]; then
- md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
- old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`"
- if [ "$md5sum" != "$old_md5sum" ]; then
- echo "Obsolete conffile $CONFFILE has been modified by you."
- echo "Saving as $CONFFILE.dpkg-bak ..."
- mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
- else
- echo "Removing obsolete conffile $CONFFILE ..."
- rm -f "$CONFFILE"
- fi
- fi
-}
-
-case "$1" in
- install|upgrade)
- if dpkg --compare-versions "$2" le "1.5.2-1"; then
- rm_conffile lyx-common "/etc/lyxrc"
- fi
-esac
-
-#DEBHELPER#
diff --git a/debian/lyx.preinst b/debian/lyx.preinst
deleted file mode 100644
index 5b62b9f..0000000
--- a/debian/lyx.preinst
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ -d /usr/share/doc/lyx ] && ! readlink /usr/share/doc/lyx >/dev/null; then
- rm -rf /usr/share/doc/lyx
-fi
-
-if readlink /usr/bin/lyx >/dev/null; then
- update-alternatives --remove lyx /usr/bin/lyx-qt
- update-alternatives --remove lyx /usr/bin/lyx-xforms
-fi
-
-#DEBHELPER#
--
LyX packaging
More information about the Pkg-lyx-devel
mailing list