From 1ce733079dfd8a14db9f2130e51ac0d26b42a44a Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 21 Nov 2022 12:31:40 +0100 Subject: [PATCH] Fix jessie keyring (#660) --- scripts/ci-test-extensions | 2 +- scripts/fix-jessie-keyring | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 scripts/fix-jessie-keyring diff --git a/scripts/ci-test-extensions b/scripts/ci-test-extensions index 7370066..1bfa2dc 100755 --- a/scripts/ci-test-extensions +++ b/scripts/ci-test-extensions @@ -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" diff --git a/scripts/fix-jessie-keyring b/scripts/fix-jessie-keyring new file mode 100755 index 0000000..a58ab0b --- /dev/null +++ b/scripts/fix-jessie-keyring @@ -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