summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2006-04-13 01:57:35 +0000
committerrillig <rillig>2006-04-13 01:57:35 +0000
commitff52de9394f0b89a6cad16379edfd11ba36350c1 (patch)
tree9e44855e532762f038d9a9d060986126e04ee46a /pkgtools
parent4cadbd4774470d93c1d8e1bd65593d482bb6487d (diff)
downloadpkgsrc-ff52de9394f0b89a6cad16379edfd11ba36350c1.tar.gz
- The variables *_USER and *_GROUP don't need the :Q operator.
- Fixed a bug in the regular expression that detects sed(1) commands that don't start with "-e".
Diffstat (limited to 'pkgtools')
-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 d655c119811..36c8b773b01 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.555 2006/04/12 21:35:02 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.556 2006/04/13 01:57:35 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2069,7 +2069,7 @@ sub type_should_be_quoted($) {
sub variable_needs_quoting($) {
my ($varname) = @_;
- return !($varname =~ qr"^(?:.*DIR|BUILDLINK_PREFIX\..*|DISTNAME|LOCALBASE|PKGNAME|PREFIX|WRKSRC)$");
+ return !($varname =~ qr"^(?:.*DIR|.*_GROUP|.*_USER|BUILDLINK_PREFIX\..*|DISTNAME|LOCALBASE|PKGNAME|PREFIX|WRKSRC)$");
}
my $check_pkglint_version_done = false;
@@ -3262,7 +3262,7 @@ sub checkline_mk_vartype_basic($$$$$$$) {
} elsif ($word eq "-n") {
# Don't print lines per default.
- } elsif ($i == 0 && $word =~ qr"^([\"']?)\d*s(.).*\2\1g?$") {
+ } elsif ($i == 0 && $word =~ qr"^([\"']?)\d*s(.).*\2g?\1$") {
$line->log_warning("Please always use \"-e\" in sed commands, even if there is only one substitution.");
} else {