From 544f92e5b894666c0cdd35944cc692b4ec8804de Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 29 Sep 2008 22:51:08 +0200 Subject: [PATCH] If $checksum is not set in template, exit. As found by morr@. --HG-- extra : convert_revision : 00c146d64a7888c0a647a04ef010f0a65dc1b9eb --- pkgfs.sh | 5 +++++ 1 file changed, 5 insertions(+) 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}')"