Make CHECK_PKG_ARCHIVE return true for packages without files

Should fix #899.
This commit is contained in:
Timothy Gu 2015-09-29 16:29:17 -07:00
parent 3451656eb9
commit e474e77244
1 changed files with 1 additions and 1 deletions

View File

@ -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'