do not run md5sum if there are nothing to check

This commit is contained in:
Natanael Copa 2008-10-30 15:53:42 +00:00
parent f463f82602
commit 11445603e0

3
abuild
View File

@ -56,6 +56,9 @@ checkdeps() {
} }
checkmd5() { checkmd5() {
if [ -z "$source" ]; then
return 0
fi
if [ -z "$md5sums" ]; then if [ -z "$md5sums" ]; then
die "Use 'abuild checksum >>$APKBUILD' to generate a checksum" die "Use 'abuild checksum >>$APKBUILD' to generate a checksum"
fi fi