[SCM] terminatorx/master: Assume dpkg-statoverride exists in d/postinst

jcowgill at users.alioth.debian.org jcowgill at users.alioth.debian.org
Tue Aug 2 20:36:32 UTC 2016


The following commit has been merged in the master branch:
commit 2c02aec165330443ac9c71d9810c1ca3263e4c0a
Author: Guillem Jover <guillem at debian.org>
Date:   Thu Jul 28 20:43:21 2016 +0100

    Assume dpkg-statoverride exists in d/postinst
    
    Closes: #770051

diff --git a/debian/postinst b/debian/postinst
index 5bd4240..109278e 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -15,21 +15,12 @@ umask 022
 db_get terminatorx/suid_bin
 suid="$RET"
 
-if [ -x /usr/sbin/dpkg-statoverride ] ; then
-        if ! dpkg-statoverride --list /usr/bin/terminatorX > /dev/null ; then
-               if [ "$suid" = "false" ] ; then
-                       chmod 0755 /usr/bin/terminatorX
-               elif [ "$suid" = "true" ] ; then
-                       chmod 4755 /usr/bin/terminatorX
-               fi
-       fi
-else
+if ! dpkg-statoverride --list /usr/bin/terminatorX > /dev/null ; then
        if [ "$suid" = "false" ] ; then
                chmod 0755 /usr/bin/terminatorX
        elif [ "$suid" = "true" ] ; then
                chmod 4755 /usr/bin/terminatorX
        fi
-
 fi
 
 db_stop

-- 
terminatorx packaging



More information about the pkg-multimedia-commits mailing list