pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - Don't warn if shell variables...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b3ebe0e1e4ca
branches:  trunk
changeset: 507866:b3ebe0e1e4ca
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Feb 10 12:49:22 2006 +0000

description:
- Don't warn if shell variables appear unquoted in ``for'' loops.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9bc048b81753 -r b3ebe0e1e4ca pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Fri Feb 10 12:39:25 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Fri Feb 10 12:49:22 2006 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.505 2006/02/07 22:10:20 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.506 2006/02/10 12:49:22 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -2491,7 +2491,7 @@
 
                checkline_mk_shellword($line, $shellword, (
                       $state != SCST_CASE
-                   && $state != SCST_FOR
+                   && $state != SCST_FOR_CONT
                    && $state != SCST_SET_CONT
                    && ($state != SCST_START || $shellword !~ regex_sh_varassign)));
 



Home | Main Index | Thread Index | Old Index