summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-09-29 23:29:17 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2015-09-29 23:29:17 (GMT)
commite474e772442d6207980268189b0255f2d7a15e96 (patch)
tree5e85f34816b737dad7e44f39ee0bb558a375b4f3
parent3451656eb93f3f31ab24f388409aadef6bcafcaf (diff)
downloadmxe-e474e772442d6207980268189b0255f2d7a15e96.zip
mxe-e474e772442d6207980268189b0255f2d7a15e96.tar.gz
mxe-e474e772442d6207980268189b0255f2d7a15e96.tar.bz2
Make CHECK_PKG_ARCHIVE return true for packages without files
Should fix #899.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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'