diff options
author | wiz <wiz@pkgsrc.org> | 2011-09-09 15:18:28 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2011-09-09 15:18:28 +0000 |
commit | 5164dd49cdbce1ea7ecea5dc2a2808f12046f1a2 (patch) | |
tree | 970a4016219950d626fe59eb317116100ba26f2f /pkgtools | |
parent | 6d87fb2eab98ba470fcd8ab43353c0b4a0965e36 (diff) | |
download | pkgsrc-5164dd49cdbce1ea7ecea5dc2a2808f12046f1a2.tar.gz |
Accept '+' in option names; currently used by the gcc-c++ option.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 5b94834dbff..8920a8caa31 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.830 2011/09/09 15:16:26 wiz Exp $ +# $NetBSD: pkglint.pl,v 1.831 2011/09/09 15:18:28 wiz Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -1902,7 +1902,7 @@ sub get_pkg_options() { $options = {}; foreach my $line (@{$lines}) { - if ($line->text =~ m"^([-0-9a-z_]+)(?:\s+(.*))?$") { + if ($line->text =~ m"^([-0-9a-z_+]+)(?:\s+(.*))?$") { my ($optname, $optdescr) = ($1, $2); $options->{$optname} = defined($optdescr) |