packages: apply usign padding workarounds to package indexes if needed

This commit is contained in:
CN_SZTL 2019-08-16 14:48:02 +08:00
parent 1983aa2917
commit 876900d6df
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
9 changed files with 6 additions and 2 deletions

0
BSDmakefile Executable file → Normal file
View File

0
Config.in Executable file → Normal file
View File

0
LICENSE Executable file → Normal file
View File

0
Makefile Executable file → Normal file
View File

0
README Executable file → Normal file
View File

0
README.md Executable file → Normal file
View File

0
feeds.conf.default Executable file → Normal file
View File

8
package/Makefile Executable file → Normal file
View File

@ -84,8 +84,12 @@ $(curdir)/index: FORCE
mkdir -p $$d; \
cd $$d || continue; \
$(SCRIPT_DIR)/ipkg-make-index.sh . 2>&1 > Packages.manifest; \
grep -vE '^(Maintainer|LicenseFiles|Source|Require)' Packages.manifest > Packages && \
gzip -9nc Packages > Packages.gz; \
grep -vE '^(Maintainer|LicenseFiles|Source|Require)' Packages.manifest > Packages; \
case "$$(((64 + $$(stat -L -c%s Packages)) % 128))" in 110|111) \
$(call ERROR_MESSAGE,WARNING: Applying padding in $$d/Packages to workaround usign SHA-512 bug!); \
{ echo ""; echo ""; } >> Packages;; \
esac; \
gzip -9nc Packages > Packages.gz; \
); done
ifdef CONFIG_SIGNED_PACKAGES
@echo Signing package index...

0
rules.mk Executable file → Normal file
View File