From 0d2e942c136a2b6cdd9af549d412a667f02c6fa1 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Tue, 11 Aug 2020 11:01:30 -0400 Subject: Make $gnupg->call('foo') update the internal GnuPG version number. Before, if you set the GPG executable using call(), and the version was different from the version used in the constructor, GnuPG::Interface would pass the wrong options to the program. This patch makes sure the executable and the version number are always in sync. --- test/fake-gpg-v1 | 2 ++ test/fake-gpg-v2 | 2 ++ 2 files changed, 4 insertions(+) create mode 100755 test/fake-gpg-v1 create mode 100755 test/fake-gpg-v2 (limited to 'test') diff --git a/test/fake-gpg-v1 b/test/fake-gpg-v1 new file mode 100755 index 0000000..0a2a68f --- /dev/null +++ b/test/fake-gpg-v1 @@ -0,0 +1,2 @@ +#!/bin/sh +echo 'gpg (GnuPG) 1.4.23' diff --git a/test/fake-gpg-v2 b/test/fake-gpg-v2 new file mode 100755 index 0000000..2578a44 --- /dev/null +++ b/test/fake-gpg-v2 @@ -0,0 +1,2 @@ +#!/bin/sh +echo 'gpg (GnuPG) 2.2.12' -- cgit v1.2.3