[SCM] jackd2/master: Remove audio.conf.disabled upon purge (Closes: #603457)

adiknoth-guest at users.alioth.debian.org adiknoth-guest at users.alioth.debian.org
Mon Nov 15 15:02:23 UTC 2010


The following commit has been merged in the master branch:
commit 54259b10ea412f92b72a238d5c5cb1db0e0f03a0
Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
Date:   Mon Nov 15 14:47:13 2010 +0100

    Remove audio.conf.disabled upon purge (Closes: #603457)

diff --git a/debian/jackd2.postrm b/debian/jackd2.postrm
index 605917c..4151d94 100644
--- a/debian/jackd2.postrm
+++ b/debian/jackd2.postrm
@@ -5,10 +5,13 @@ CONFIG_FILE=/etc/security/limits.d/audio.conf
 
 if [ "$1" = "purge" ]
 then
-    if [ -e $CONFIG_FILE ]
-    then
-        rm $CONFIG_FILE
-    fi
+    for conffile in ${CONFIG_FILE} ${CONFIG_FILE}.disabled
+    do
+        if [ -e ${conffile} ]
+        then
+            rm ${conffile}
+        fi
+    done
 
     # if we still have debconf, also remove our entries from the DB
     if [ -e /usr/share/debconf/confmodule ]

-- 
jackd2 packaging



More information about the pkg-multimedia-commits mailing list