summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-06-18 00:51:34 +0000
committerrillig <rillig@pkgsrc.org>2006-06-18 00:51:34 +0000
commit161e7400292c1966fc49ffedfe77101edb5afeb9 (patch)
treef7e8b14bdafde74bc9073b352506f3a43032fcb2
parent82083b5f832777fa0c7d656bbbbc7a9a405a90dd (diff)
downloadpkgsrc-161e7400292c1966fc49ffedfe77101edb5afeb9.tar.gz
Bugfix: Always count the SUBST_SED and SUBST_FILES lines.
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
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)) {