If $checksum is not set in template, exit. As found by morr@.

--HG--
extra : convert_revision : 00c146d64a7888c0a647a04ef010f0a65dc1b9eb
This commit is contained in:
Juan RP 2008-09-29 22:51:08 +02:00
parent 49dff5c7ca
commit 544f92e5b8
1 changed files with 5 additions and 0 deletions

View File

@ -302,6 +302,11 @@ check_rmd160_cksum()
dfile="$file$extract_sufx"
fi
if [ -z "$checksum" ]; then
echo "*** ERROR: checksum unset in template file for $pkgname ***"
exit 1
fi
origsum="$checksum"
dfile="$PKGFS_SRC_DISTDIR/$dfile"
filesum="$($cksum_cmd $dfile | $awk_cmd '{print $4}')"