[SCM] libdvdcss-pkg/master: check for broken packages before install; self-disable if not OK

onlyjob at users.alioth.debian.org onlyjob at users.alioth.debian.org
Sat May 25 08:29:56 UTC 2013


The following commit has been merged in the master branch:
commit 9e1e58410dca7e8bee80bef2ab0bbb0b9e617f0c
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date:   Sat May 25 17:09:23 2013 +1000

    check for broken packages before install; self-disable if not OK

diff --git a/debian/b-i_libdvdcss.sh b/debian/b-i_libdvdcss.sh
index 1b0515f..495afb6 100755
--- a/debian/b-i_libdvdcss.sh
+++ b/debian/b-i_libdvdcss.sh
@@ -40,6 +40,12 @@ if [ "$?" -eq 2 ]; then
     echo "${PKGI}: dpkg database is locked. Package(s) will be built and installed by dpkg post-invoke handler."
     echo "${PKGI}: post-invoke handler will take control after next apt-get operation i.e. install/remove/upgrade etc."
     echo "${PKGI}: Alternatively you may use command \"sudo dpkg-reconfigure ${PKGI}\"."
+fi
+
+apt-get check >/dev/null 2>&1
+if [ "$?" -ne 0 ]; then
+    echo "${PKGI}: \`apt-get check\` failed, you may have broken packages. Aborting..."
+    db_set ${PKGI}/build false
     exit 0
 fi
 

-- 
libdvdcss-pkg packaging



More information about the pkg-multimedia-commits mailing list