summaryrefslogtreecommitdiff
path: root/debian/patches/hardcode-path
blob: 1c6d8bc94db717333dae60ccf563dcb5f1575e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Hardcode path to /usr/bin/gpg
Author: Dominic Hargreaves
Last-Update: 2021-02-10
Forwarded: Not-Needed
Bug-Debian: https://bugs.debian.org/981647

diff --git a/lib/GnuPG/Interface.pm b/lib/GnuPG/Interface.pm
index 13b313e..84312e2 100644
--- a/lib/GnuPG/Interface.pm
+++ b/lib/GnuPG/Interface.pm
@@ -76,7 +76,7 @@ sub gnupg_call { shift->call(@_); }
 
 sub BUILD {
     my ( $self, $args ) = @_;
-    $self->hash_init( call => 'gpg', %$args );
+    $self->hash_init( call => '/usr/bin/gpg', %$args );
 }
 
 struct(
@@ -1190,9 +1190,8 @@ keys to list in a key-listing.
 
 =item call
 
-This defines the call made to invoke GnuPG.  Defaults to 'gpg'; this
-should be changed if 'gpg' is not in your path, or there is a different
-name for the binary on your system.
+This defines the call made to invoke GnuPG.  Defaults to '/usr/bin/gpg'; this
+should be changed if there is a different name for the binary on your system.
 
 =item passphrase