Bug#860023: libdebian-source-perl: Rejects valid field names based on letter case
Ben Finney
bignose at debian.org
Mon Apr 10 12:37:28 UTC 2017
Package: libdebian-source-perl
Version: 0.94
Severity: normal
The ‘Debian::Control::Stanza’ constructor assumes that field names
must have the exact case of the names as defined in that library. This
assumption is incorrect.
Given a Perl module::
use Debian::Control::Stanza::Source;
my $s = Debian::Control::Stanza::Source->new( {
'Build-Depends' => "debhelper",
'VCS-Git' => "https://example.org/",
} );
The above code causes the error message::
Invalid field given (VCS_Git) at ./foo.pl line 6.
The spelling “VCS-Git” is not invalid. Debian Policy §5.1 specifies
that “Field names are not case-sensitive […]”.
The library should allow field names without regard to their
capitalisation. For example, the names “vcs-git”, “Vcs-Git”,
“VCS-Git”, “vcS-gIt” should all be interpreted as the same field name
by ‘libdebian-source-perl’.
--
\ “I have yet to see any problem, however complicated, which, |
`\ when you looked at it in the right way, did not become still |
_o__) more complicated.” —Paul Anderson |
Ben Finney <bignose at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20170410/d73bea78/attachment.sig>
More information about the pkg-perl-maintainers
mailing list