diff options
author | Guillem Jover <guillem@debian.org> | 2018-09-29 23:32:34 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-10-08 11:46:36 +0200 |
commit | 2d3a3fd28050ca76be4322e2d44b13627c0c5f72 (patch) | |
tree | eaf9d4983f36de243be4173f0d3e7e378228813a /scripts/Dpkg/OpenPGP.pm | |
parent | 232728accd5a3d12e93ef1296f407ee02184fdce (diff) | |
download | dpkg-2d3a3fd28050ca76be4322e2d44b13627c0c5f72.tar.gz |
Dpkg::OpenPGP: Ignore Version field in enarmored output
This will contain different data depending on the program used. We do
not really care about that, later versions of GnuPG have stopped
emitting it, and it makes the test suite fail when using GnuPG 1.x.
Fixes: https://rt.cpan.org/Public/Bug/Display.html?id=127217
Diffstat (limited to 'scripts/Dpkg/OpenPGP.pm')
-rw-r--r-- | scripts/Dpkg/OpenPGP.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Dpkg/OpenPGP.pm b/scripts/Dpkg/OpenPGP.pm index 8d85e845d..210a36f23 100644 --- a/scripts/Dpkg/OpenPGP.pm +++ b/scripts/Dpkg/OpenPGP.pm @@ -61,6 +61,7 @@ sub openpgp_sig_to_asc open my $fh_gpg, '-|', 'gpg', '-o', '-', '--enarmor', $sig or syserr(g_('cannot execute %s program'), 'gpg'); while (my $line = <$fh_gpg>) { + next if $line =~ m/^Version: /; next if $line =~ m/^Comment: /; $line =~ s/ARMORED FILE/SIGNATURE/; |