1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-08 12:28:00 -05:00

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() {
[ ${#source[@]} -eq 0 ] && return 0
if [ ! $(type -p openssl) ]; then
error "$(gettext "Cannot find openssl.")"
exit 1 # $E_MISSING_PROGRAM