diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-09-29 23:29:17 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-09-29 23:29:17 (GMT) |
commit | e474e772442d6207980268189b0255f2d7a15e96 (patch) | |
tree | 5e85f34816b737dad7e44f39ee0bb558a375b4f3 /Makefile | |
parent | 3451656eb93f3f31ab24f388409aadef6bcafcaf (diff) | |
download | mxe-e474e772442d6207980268189b0255f2d7a15e96.zip mxe-e474e772442d6207980268189b0255f2d7a15e96.tar.gz mxe-e474e772442d6207980268189b0255f2d7a15e96.tar.bz2 |
Make CHECK_PKG_ARCHIVE return true for packages without files
Should fix #899.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' |