[SCM] libdvdcss-pkg/master: remove source archive if failed integrity check
onlyjob at users.alioth.debian.org
onlyjob at users.alioth.debian.org
Wed May 15 03:21:53 UTC 2013
The following commit has been merged in the master branch:
commit 8eee5f83f075463a047492348bb608bd375507c8
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date: Wed May 15 13:20:23 2013 +1000
remove source archive if failed integrity check
diff --git a/debian/b-i_libdvdcss.sh b/debian/b-i_libdvdcss.sh
index b8b542a..25230c0 100755
--- a/debian/b-i_libdvdcss.sh
+++ b/debian/b-i_libdvdcss.sh
@@ -52,7 +52,12 @@ if [ "$RET" = "true" ]; then
cd ${DIR} \
&& /usr/share/${PKGI}/debian/rules get-orig-source
echo "${PKGI}: Checking integrity..."
- md5sum --check --strict --quiet /usr/share/${PKGI}/*_${VER%%-*}.orig.tar.*.md5
+ md5sum --check --strict --quiet /usr/share/${PKGI}/*_${VER%%-*}.orig.tar.*.md5 \
+ || (
+ rm -fv ${DIR}/*_${VER%%-*}.orig.tar.*
+ echo "Source archive failed integrity check so it was deleted. Please try again."
+ false
+ )
## preparing to build
echo "${PKGI}: Unpacking and configuring..."
--
libdvdcss-pkg packaging
More information about the pkg-multimedia-commits
mailing list