[pacman-dev] [PATCH] Only check checksums if there is a source file

Allan McRae allan at archlinux.org
Sat Mar 14 10:11:02 EDT 2009


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 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 2ff98f1..3ff256f 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
-- 
1.6.2



More information about the pacman-dev mailing list