packages: apply usign padding workarounds to package indexes if needed
This commit is contained in:
parent
1983aa2917
commit
876900d6df
0
BSDmakefile
Executable file → Normal file
0
BSDmakefile
Executable file → Normal file
0
feeds.conf.default
Executable file → Normal file
0
feeds.conf.default
Executable file → Normal file
8
package/Makefile
Executable file → Normal file
8
package/Makefile
Executable file → Normal 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...
|
||||
|
||||
Loading…
Reference in New Issue
Block a user