diff options
author | Guillem Jover <guillem@debian.org> | 2014-07-28 02:54:26 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-08-09 23:04:37 +0200 |
commit | 43c945efdf244e9124d916e3a4e028a557ed8e3c (patch) | |
tree | 017e519ff121301d5ce25550121178b376bbbeb4 /scripts/Dpkg/Control/HashCore.pm | |
parent | 53ab15cf80df8727026cee31cb8dc7899f2488e8 (diff) | |
download | dpkg-43c945efdf244e9124d916e3a4e028a557ed8e3c.tar.gz |
Dpkg::Control::HashCore: Say OpenPGP instead of PGP in comments and errors
When we meant the standard (and not the tool) we should have been saying
OpenPGP.
Diffstat (limited to 'scripts/Dpkg/Control/HashCore.pm')
-rw-r--r-- | scripts/Dpkg/Control/HashCore.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/Dpkg/Control/HashCore.pm b/scripts/Dpkg/Control/HashCore.pm index b23a77cea..3128f788c 100644 --- a/scripts/Dpkg/Control/HashCore.pm +++ b/scripts/Dpkg/Control/HashCore.pm @@ -73,7 +73,7 @@ are: =item allow_pgp -Configures the parser to accept PGP signatures around the control +Configures the parser to accept OpenPGP signatures around the control information. Value can be 0 (default) or 1. =item allow_duplicate @@ -225,33 +225,33 @@ sub parse { } elsif (m/^-----BEGIN PGP SIGNED MESSAGE-----$/) { $expect_pgp_sig = 1; if ($$self->{allow_pgp} and not $parabody) { - # Skip PGP headers + # Skip OpenPGP headers while (<$fh>) { last if m/^\s*$/; } } else { - $self->parse_error($desc, _g('PGP signature not allowed here')); + $self->parse_error($desc, _g('OpenPGP signature not allowed here')); } } elsif (m/^$/ || ($expect_pgp_sig && m/^-----BEGIN PGP SIGNATURE-----$/)) { if ($expect_pgp_sig) { # Skip empty lines $_ = <$fh> while defined($_) && $_ =~ /^\s*$/; unless (length $_) { - $self->parse_error($desc, _g('expected PGP signature, ' . + $self->parse_error($desc, _g('expected OpenPGP signature, ' . 'found EOF after blank line')); } s/\s*\n$//; unless (m/^-----BEGIN PGP SIGNATURE-----$/) { - $self->parse_error($desc, _g('expected PGP signature, ' . + $self->parse_error($desc, _g('expected OpenPGP signature, ' . "found something else \`%s'"), $_); } - # Skip PGP signature + # Skip OpenPGP signature while (<$fh>) { s/\s*\n$//; last if m/^-----END PGP SIGNATURE-----$/; } unless (defined($_)) { - $self->parse_error($desc, _g('unfinished PGP signature')); + $self->parse_error($desc, _g('unfinished OpenPGP signature')); } # This does not mean the signature is correct, that needs to # be verified by gnupg. @@ -265,7 +265,7 @@ sub parse { } if ($expect_pgp_sig and not $$self->{is_pgp_signed}) { - $self->parse_error($desc, _g('unfinished PGP signature')); + $self->parse_error($desc, _g('unfinished OpenPGP signature')); } return defined($cf); |