threads / patch / 8931

patcht7004: Skip tests for signed tags in an old version of gpg.

Subject: [PATCH] t7004: Skip tests for signed tags in an old version of gpg.

## tl;dr

3 messages between Jul 8, 2007 and Jul 8, 2007. Diffs are folded; open one to read it.

replies: 2people: 3as markdown or json

Carlos Rica· Jul 8, 2007, 19:36 UTC · lore

As said here: http://www.gnupg.org/documentation/faqs.html#q6.19 the gpg version 1.0.6 didn't parse trust packets correctly, so for that version, creation of signed tags using the generated key fails.

Signed-off-by: Carlos Rica <jasampler@gmail.com>
---
This was already discussed in a previous message from Sven,
who runs that old version of gpg:
http://thread.gmane.org/gmane.comp.version-control.git/51291

The page describing the bug was found by Johannes after some research: http://colabti.de/irclogger/irclogger_log/git?date=2007-07-01,Sun&sel=482#l814

 t/t7004-tag.sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
Show changes to t/t7004-tag.sh +11 −0
diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh
index a845930..b785080 100755
--- a/t/t7004-tag.sh
+++ b/t/t7004-tag.sh
@@ -460,6 +460,17 @@ if [ $? -eq 127 ]; then
 	exit
 fi

+# As said here: http://www.gnupg.org/documentation/faqs.html#q6.19
+# the gpg version 1.0.6 didn't parse trust packets correctly, so for
+# that version, creation of signed tags using the generated key fails.
+case "$(gpg --version)" in
+'gpg (GnuPG) 1.0.6'*)
+	echo "Skipping signed tag tests, because a bug in 1.0.6 version"
+	test_done
+	exit
+	;;
+esac
+
 # key generation info: gpg --homedir t/t7004 --gen-key
 # Type DSA and Elgamal, size 2048 bits, no expiration date.
 # Name and email: C O Mitter <committer@example.com>
-- 
1.5.0
Sven Verdoolaege· Jul 8, 2007, 20:22 UTC · re: Carlos Rica · lore

Re: [PATCH] t7004: Skip tests for signed tags in an old version of gpg.

On Sun, Jul 08, 2007 at 09:36:34PM +0200, Carlos Rica wrote:
Show 5 quoted lines
> As said here: http://www.gnupg.org/documentation/faqs.html#q6.19
> the gpg version 1.0.6 didn't parse trust packets correctly, so for
> that version, creation of signed tags using the generated key fails.
> 
> Signed-off-by: Carlos Rica <jasampler@gmail.com>
Acked-by: Sven Verdoolaege <skimo@kotnet.org>
skimo

← back to recent threads