If $checksum is not set in template, exit. As found by morr@.
--HG-- extra : convert_revision : 00c146d64a7888c0a647a04ef010f0a65dc1b9eb
This commit is contained in:
parent
49dff5c7ca
commit
544f92e5b8
1 changed files with 5 additions and 0 deletions
5
pkgfs.sh
5
pkgfs.sh
|
@ -302,6 +302,11 @@ check_rmd160_cksum()
|
||||||
dfile="$file$extract_sufx"
|
dfile="$file$extract_sufx"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$checksum" ]; then
|
||||||
|
echo "*** ERROR: checksum unset in template file for $pkgname ***"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
origsum="$checksum"
|
origsum="$checksum"
|
||||||
dfile="$PKGFS_SRC_DISTDIR/$dfile"
|
dfile="$PKGFS_SRC_DISTDIR/$dfile"
|
||||||
filesum="$($cksum_cmd $dfile | $awk_cmd '{print $4}')"
|
filesum="$($cksum_cmd $dfile | $awk_cmd '{print $4}')"
|
||||||
|
|
Loading…
Reference in a new issue