diff options
author | Dianne Skoll <dianne@bestpractical.com> | 2020-08-11 11:01:30 -0400 |
---|---|---|
committer | sunnavy <sunnavy@bestpractical.com> | 2021-01-16 07:11:02 +0800 |
commit | 0d2e942c136a2b6cdd9af549d412a667f02c6fa1 (patch) | |
tree | 637bfc46fab08d9cdaa9bd5d5a5146dae90339b8 /test | |
parent | dce1ca59bff8ebd643b6a7d17db1b1b5948f200c (diff) |
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.
Diffstat (limited to 'test')
-rwxr-xr-x | test/fake-gpg-v1 | 2 | ||||
-rwxr-xr-x | test/fake-gpg-v2 | 2 |
2 files changed, 4 insertions, 0 deletions
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' |