From e474e772442d6207980268189b0255f2d7a15e96 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Tue, 29 Sep 2015 16:29:17 -0700 Subject: Make CHECK_PKG_ARCHIVE return true for packages without files Should fix #899. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cfbc52b..be5b4a1 100644 --- a/Makefile +++ b/Makefile @@ -169,7 +169,7 @@ PKG_CHECKSUM = \ openssl sha256 '$(PKG_DIR)/$($(1)_FILE)' 2>/dev/null | $(SED) -n 's,^.*\([0-9a-f]\{64\}\)$$,\1,p' CHECK_PKG_ARCHIVE = \ - [ '$($(1)_CHECKSUM)' == "`$$(call PKG_CHECKSUM,$(1))`" ] + [ -z '$($(1)_FILE)' ] || [ '$($(1)_CHECKSUM)' == "`$$(call PKG_CHECKSUM,$(1))`" ] ESCAPE_PKG = \ echo '$($(1)_FILE)' | perl -lpe 's/([^A-Za-z0-9])/sprintf("%%%02X", ord($$$$1))/seg' -- cgit v0.12