From 741167cba38cd456ec562123e359fbbc65f8a7f9 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 23 Jul 2019 11:37:55 +0200 Subject: [PATCH] Try not to use loopback for gpg 2.1.11 --- dev/tests/run_tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev/tests/run_tests.sh b/dev/tests/run_tests.sh index b246e63..4975159 100755 --- a/dev/tests/run_tests.sh +++ b/dev/tests/run_tests.sh @@ -331,15 +331,22 @@ function test_GPG () { # Detect if GnuPG >= 2.1 that does not allow automatic pin entry anymore + + # GnuPG 2.1.11 has a bug that does not allow usage of pinentry mode 'loopback' + # GnuPC 2.1.22 has that bug resolved + cryptToolVersion=$($CRYPT_TOOL --version | head -1 | awk '{print $3}') cryptToolMajorVersion=${cryptToolVersion%%.*} cryptToolSubVersion=${cryptToolVersion#*.} cryptToolSubVersion=${cryptToolSubVersion%.*} + cryptToolMinorVersion=${cryptToolVersion##*.} echo "$CRYPT_TOOL is $cryptToolVersion" if [ $cryptToolMajorVersion -eq 2 ] && [ $cryptToolSubVersion -ge 1 ]; then - additionalParameters="--pinentry-mode loopback" + if [ $cryptToolMinorVersion -ge 11 ]; then + additionalParameters="--pinentry-mode loopback" + fi fi if [ "$CRYPT_TOOL" == "gpg2" ]; then