diff options
author | sbd <sbd> | 2012-05-08 23:11:48 +0000 |
---|---|---|
committer | sbd <sbd> | 2012-05-08 23:11:48 +0000 |
commit | cfa6c5f7855be090853085c0a91488878acd6ec0 (patch) | |
tree | bb9912b78781b28afdaa15efbf2b01a9cb221ccd /pkgtools/pkglint | |
parent | 03d5b5b453764e639793c6c331a0099aba3155bd (diff) | |
download | pkgsrc-cfa6c5f7855be090853085c0a91488878acd6ec0.tar.gz |
In parse_makefile_vars() inprove the pattern used to remove comments so
that it doesn't match on backslash quoted hash characters. PR/46422
Bump PKGVERSION.
Diffstat (limited to 'pkgtools/pkglint')
-rwxr-xr-x | pkgtools/pkglint/files/lintpkgsrc.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl index f6ae00839b3..eb9aeb4afea 100755 --- a/pkgtools/pkglint/files/lintpkgsrc.pl +++ b/pkgtools/pkglint/files/lintpkgsrc.pl @@ -1,6 +1,6 @@ #! @PERL@ -# $NetBSD: lintpkgsrc.pl,v 1.115 2007/11/22 09:36:38 rillig Exp $ +# $NetBSD: lintpkgsrc.pl,v 1.116 2012/05/08 23:11:48 sbd Exp $ # Written by David Brownlee <abs@netbsd.org>. # @@ -994,7 +994,7 @@ sub parse_makefile_vars($$) { } while ( defined( $_ = shift(@data) ) ) { - s/\s*#.*//; + s/\s*[^\\]#.*//; # Continuation lines # |