diff options
author | Allan McRae <allan@archlinux.org> | 2009-03-14 23:43:05 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-03-15 11:38:54 -0500 |
commit | 687f04ab4699440e3d8b371454b26039b6eb2772 (patch) | |
tree | bd3c74192143990a75a27fd980494fce40253289 | |
parent | a864a50bc6a65a5c39a4727a07a3b269049a808e (diff) |
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>
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index d2cf52e2..0aa8a9b1 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 |