From 898936120e987d9faf27002e2d01844edbfbb538 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Sat, 12 Mar 2011 16:04:31 +0000 Subject: Dpkg::Control::Hash: accept PGP signature as end of block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improved-by: Raphaƫl Hertzog --- scripts/Dpkg/Control/Hash.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Dpkg/Control') diff --git a/scripts/Dpkg/Control/Hash.pm b/scripts/Dpkg/Control/Hash.pm index 9ecf7d346..82157d952 100644 --- a/scripts/Dpkg/Control/Hash.pm +++ b/scripts/Dpkg/Control/Hash.pm @@ -193,7 +193,7 @@ sub parse { } else { syntaxerr($desc, _g("PGP signature not allowed here")); } - } elsif (m/^$/) { + } elsif (m/^$/ || ($expect_pgp_sig && m/^-----BEGIN PGP SIGNATURE/)) { if ($expect_pgp_sig) { # Skip empty lines $_ = <$fh> while defined($_) && $_ =~ /^\s*$/; -- cgit v1.2.3