diff options
author | Guillem Jover <guillem@debian.org> | 2018-09-29 23:34:32 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-10-08 11:46:36 +0200 |
commit | f6c46ce78c7e3f5504ce5d18a16c5482597716e3 (patch) | |
tree | ab695737fabbc9eff39c0fc256430caeffbb85bc /scripts | |
parent | 2d3a3fd28050ca76be4322e2d44b13627c0c5f72 (diff) | |
download | dpkg-f6c46ce78c7e3f5504ce5d18a16c5482597716e3.tar.gz |
Dpkg::OpenPGP: Do not read the gpg user configuration file
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Dpkg/OpenPGP.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Dpkg/OpenPGP.pm b/scripts/Dpkg/OpenPGP.pm index 210a36f23..f719e6e4e 100644 --- a/scripts/Dpkg/OpenPGP.pm +++ b/scripts/Dpkg/OpenPGP.pm @@ -56,9 +56,11 @@ sub openpgp_sig_to_asc warning(g_('cannot OpenPGP ASCII armor signature file due to missing gpg')); } + my @gpg_opts = qw(--no-options); + open my $fh_asc, '>', $asc or syserr(g_('cannot create signature file %s'), $asc); - open my $fh_gpg, '-|', 'gpg', '-o', '-', '--enarmor', $sig + open my $fh_gpg, '-|', 'gpg', @gpg_opts, '-o', '-', '--enarmor', $sig or syserr(g_('cannot execute %s program'), 'gpg'); while (my $line = <$fh_gpg>) { next if $line =~ m/^Version: /; |