diff options
author | rillig <rillig> | 2006-06-18 00:51:34 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-06-18 00:51:34 +0000 |
commit | 6d623c10fb900a6324b7ede6b773f3b93798ed13 (patch) | |
tree | f7e8b14bdafde74bc9073b352506f3a43032fcb2 | |
parent | 97c88eb1d518e9a915540fdb54d74fc0ebc58280 (diff) | |
download | pkgsrc-6d623c10fb900a6324b7ede6b773f3b93798ed13.tar.gz |
Bugfix: Always count the SUBST_SED and SUBST_FILES lines.
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 0ace595bd45..071b78a0db9 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -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 @@ sub check_varassign($$$$$) { 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)) { |