summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2009-03-14 23:43:05 +1000
committerDan McGee <dan@archlinux.org>2009-03-15 11:38:54 -0500
commit687f04ab4699440e3d8b371454b26039b6eb2772 (patch)
treebd3c74192143990a75a27fd980494fce40253289 /scripts
parenta864a50bc6a65a5c39a4727a07a3b269049a808e (diff)
downloadpacman-687f04ab4699440e3d8b371454b26039b6eb2772.tar.xz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in2
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