Fix jessie keyring (#660)

This commit is contained in:
Michele Locati 2022-11-21 12:31:40 +01:00 committed by GitHub
parent e17de5b5bd
commit 1ce733079d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -328,7 +328,7 @@ testExtensionFor() {
printf ' - Docker image: %s\n' "$testExtensionFor_Image"
testExtensionFor_out="$(mktemp)"
testExtensionFor_start=$(date +%s)
if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --env CI=true --env IPE_FIX_CACERTS=1 --env IPE_ASPELL_LANGUAGES='en fr' --workdir /app "$testExtensionFor_Image" sh -c "./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then
if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --env CI=true --env IPE_FIX_CACERTS=1 --env IPE_ASPELL_LANGUAGES='en fr' --workdir /app "$testExtensionFor_Image" sh -c "./scripts/fix-jessie-keyring && ./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then
testExtensionFor_end=$(date +%s)
testExtensionFor_delta=$(expr $testExtensionFor_end - $testExtensionFor_start)
rm -rf "$testExtensionFor_out"

12
scripts/fix-jessie-keyring Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# Let's set a sane environment
set -o errexit
set -o nounset
if grep -q 'VERSION="8 (jessie)"' /etc/os-release; then
echo 'Fix Debian Jessie keyring'
curl -o /tmp/debian-archive-keyring.deb -sSLf http://ftp.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_2019.1+deb10u1_all.deb
dpkg -i /tmp/debian-archive-keyring.deb
rm -rf /tmp/debian-archive-keyring.deb
fi