Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=8338613bb3712d01f798e5ccf4a95f6c4ecf56dc
commit 8338613bb3712d01f798e5ccf4a95f6c4ecf56dc Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Sat Nov 10 15:32:10 2007 +0100 syncripts/*sync: die on corrupted packages closes #2476 diff --git a/scripts/gensync b/scripts/gensync index 3be0abc..c63051c 100755 --- a/scripts/gensync +++ b/scripts/gensync @@ -64,6 +64,7 @@ CHROOT=1 get_sha1checksum() { if [ -f $pkgfile ]; then + bzip2 --test $pkgfile || die "corrupted package: $pkgfile" sha1line=`sha1sum $pkgfile` [ ! -z "$sha1line" ] && pkgsha1sum=${sha1line% *} echo $pkgsha1sum diff --git a/scripts/updatesync b/scripts/updatesync index b9a6952..fa79bd5 100755 --- a/scripts/updatesync +++ b/scripts/updatesync @@ -65,6 +65,7 @@ CHROOT=1 get_sha1checksum() { if [ -f $pkgfile ]; then + bzip2 --test $pkgfile || die "corrupted package: $pkgfile" sha1line=`sha1sum $pkgfile` [ ! -z "$sha1line" ] && pkgsha1sum=${sha1line% *} echo $pkgsha1sum _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git