Package: libmodule-signature-perl / 0.93-1

Metadata

Package Version Patches format
libmodule-signature-perl 0.93-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Fix gpg output parsing.patch | (download)

lib/Module/Signature.pm | 13 5 + 8 - 0 !
1 file changed, 5 insertions(+), 8 deletions(-)

 [patch] fix gpg output parsing
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Use foreach instead of while to traverse the GnuPG output array,
otherwise the topic variable never gets initialized, and the while
continuously evaluates the array in boolean context and we get into
infinite loops.

With GnuPG the infinite loop currently never triggers because it does
not output anything on stdout. But with the Sequoia GnuPG Chameleon it
outputs the original contents being verified (which is a divergence
that should probably be fixed upstream).

Force the output to stdout instead of stderr so that we can parse it,
and update the parser to match on current output lines. Although ideally
the parser should be switched to try to use one of the machine parseable
outputs such as --with-colons, otherwise there is no guarantee this will
not change again in the future, but this is the simplest minimal change.

Bug: https://github.com/audreyt/module-signature/pull/40