This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=f6c46ce78c7e3f5504ce5d18a16c5482597716e3 commit f6c46ce78c7e3f5504ce5d18a16c5482597716e3 Author: Guillem Jover <guil...@debian.org> AuthorDate: Sat Sep 29 23:34:32 2018 +0200 Dpkg::OpenPGP: Do not read the gpg user configuration file --- debian/changelog | 1 + scripts/Dpkg/OpenPGP.pm | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 1f33be708..0ed0de87a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ dpkg (1.19.2) UNRELEASED; urgency=medium * Perl modules: - Dpkg::OpenPGP: Ignore Version field in enarmored output. Fixes CPAN#127217. + - Dpkg::OpenPGP: Do not read the gpg user configuration file. * Documentation: - dpkg-buildpackage(1): Clarify --build=source explanation. - dsc(5): Clarify what “flattened” means in Testsuite-Triggers. 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: /; -- Dpkg.Org's dpkg