pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Bugfix: Always count the SUBST_...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c46f4c34fe6
branches:  trunk
changeset: 514784:3c46f4c34fe6
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Jun 18 00:51:34 2006 +0000

description:
Bugfix: Always count the SUBST_SED and SUBST_FILES lines.

diffstat:

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

diffs (31 lines):

diff -r e3028298726d -r 3c46f4c34fe6 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sun Jun 18 00:48:47 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sun Jun 18 00:51:34 2006 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.628 2006/06/18 00:48:47 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.629 2006/06/18 00:51:34 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -1422,16 +1422,16 @@
                        if ($op ne "+=") {
                                $line->log_warning("All but the first SUBST_FILES line should use the \"+=\" operator.");
                        }
-                       push(@{$self->subst_files}, $value);
-               }
+               }
+               push(@{$self->subst_files}, $value);
 
        } elsif ($varbase eq "SUBST_SED") {
                if (@{$self->subst_sed} > 0) {
                        if ($op ne "+=") {
                                $line->log_warning("All but the first SUBST_SED line should use the \"+=\" operator.");
                        }
-                       push(@{$self->subst_sed}, $value);
-               }
+               }
+               push(@{$self->subst_sed}, $value);
 
        } elsif ($varbase eq "SUBST_FILTER_CMD") {
                if (defined($self->subst_filter_cmd)) {



Home | Main Index | Thread Index | Old Index