Only check checksums if there is a source file

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2009-03-14 23:43:05 +10:00 committed by Dan McGee
parent a864a50bc6
commit 687f04ab46

View file

@ -547,6 +547,8 @@ generate_checksums() {
} }
check_checksums() { check_checksums() {
[ ${#source[@]} -eq 0 ] && return 0
if [ ! $(type -p openssl) ]; then if [ ! $(type -p openssl) ]; then
error "$(gettext "Cannot find openssl.")" error "$(gettext "Cannot find openssl.")"
exit 1 # $E_MISSING_PROGRAM exit 1 # $E_MISSING_PROGRAM