[SCM] jackd2/master: Drop pre-squeeze conffile cleanup in preinst.
js at users.alioth.debian.org
js at users.alioth.debian.org
Thu Dec 27 11:58:10 UTC 2012
The following commit has been merged in the master branch:
commit 25bec9398220e721c07d4fcf24544b53ae863933
Author: Jonas Smedegaard <dr at jones.dk>
Date: Thu Dec 27 12:09:14 2012 +0100
Drop pre-squeeze conffile cleanup in preinst.
diff --git a/debian/jackd2.preinst b/debian/jackd2.preinst
deleted file mode 100644
index 32e6e65..0000000
--- a/debian/jackd2.preinst
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh -e
-
-# Remove a no-longer used conffile
-rm_conffile() {
- local PKGNAME="$1"
- local CONFFILE="$2"
-
- [ -e "$CONFFILE" ] || return 0
-
- local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')"
- local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \
- sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")"
- if [ "$md5sum" != "$old_md5sum" ] && \
- [ "$md5sum" != "c9d1f0caa7b49ce7f0d2bc7b458bdd3f" ]; 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
-}
-
-LASTVERSION=0.116.2+svn3592-2
-
-case "$1" in
-install|upgrade)
- if dpkg --compare-versions "$2" le "$LASTVERSION"; then
- rm_conffile jackd "/etc/init.d/jackd"
- fi
-esac
-
-#DEBHELPER#
--
jackd2 packaging
More information about the pkg-multimedia-commits
mailing list