diff --git a/pkgfs.sh b/pkgfs.sh index 9e0033a08c2..3d83fc0e3fa 100755 --- a/pkgfs.sh +++ b/pkgfs.sh @@ -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}')"