[SCM] jack-audio-connection-kit/master: d/jackd1.preinst: remove code dealing with a very old migration

mattia at users.alioth.debian.org mattia at users.alioth.debian.org
Sat Nov 11 11:08:20 UTC 2017


The following commit has been merged in the master branch:
commit 2837137a5e3e19a20d181f990e7db93a825655c1
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sat Nov 11 12:00:24 2017 +0100

    d/jackd1.preinst: remove code dealing with a very old migration
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>

diff --git a/debian/jackd1.preinst b/debian/jackd1.preinst
deleted file mode 100644
index 32e6e65..0000000
--- a/debian/jackd1.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#

-- 
Debian packaging for jack-audio-connection-kit



More information about the pkg-multimedia-commits mailing list