hooks/do-fetch/00-distfiles: improve previous to handle all cases.

This commit is contained in:
Juan RP 2014-03-07 11:20:56 +01:00
parent ede40cdc41
commit b9e30d45dc
1 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ hook() {
fi fi
verify_sha256_cksum $curfile $cksum $distfile verify_sha256_cksum $curfile $cksum $distfile
rval=$? errors=$(($errors + 1))
unset cksum found unset cksum found
ckcount=0 ckcount=0
dfcount=$(($dfcount + 1)) dfcount=$(($dfcount + 1))
@ -96,14 +96,14 @@ hook() {
msg_error "$pkgver: cannot find checksum for $curfile.\n" msg_error "$pkgver: cannot find checksum for $curfile.\n"
fi fi
verify_sha256_cksum $curfile $cksum $distfile verify_sha256_cksum $curfile $cksum $distfile
rval=$? errors=$(($errors + 1))
unset cksum found unset cksum found
ckcount=0 ckcount=0
fi fi
dfcount=$(($dfcount + 1)) dfcount=$(($dfcount + 1))
done done
if [ "$rval" -ne 0 ]; then if [ "$errors" -gt 0 ]; then
msg_error "$pkgver: couldn't verify distfiles, exiting...\n" msg_error "$pkgver: couldn't verify distfiles, exiting...\n"
fi fi
} }