aboutsummaryrefslogtreecommitdiff
path: root/devel/portlint
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2000-02-02 21:07:39 +0000
committerMichael Haro <mharo@FreeBSD.org>2000-02-02 21:07:39 +0000
commit633118fd04aaf0114538e07b0a611310806e18e6 (patch)
tree29df3758511e96a8ef4182ab96eebf8e1b46ba7b /devel/portlint
parent0349599ee043ffac93a3c7dfeb123fff35a58241 (diff)
downloadports-633118fd04aaf0114538e07b0a611310806e18e6.tar.gz
ports-633118fd04aaf0114538e07b0a611310806e18e6.zip
issue a warning when @owner or @group are found in the PLIST
Notes
Notes: svn path=/head/; revision=25417
Diffstat (limited to 'devel/portlint')
-rw-r--r--devel/portlint/src/portlint.pl14
1 files changed, 2 insertions, 12 deletions
diff --git a/devel/portlint/src/portlint.pl b/devel/portlint/src/portlint.pl
index c86ef300fe56..9def9545f34f 100644
--- a/devel/portlint/src/portlint.pl
+++ b/devel/portlint/src/portlint.pl
@@ -280,18 +280,8 @@ sub checkplist {
}
} elsif ($_ =~ /^\@(comment)/) {
$rcsidseen++ if (/\$$rcsidstr[:\$]/);
- } elsif ($_ =~ /^\@(owner|group)\s+$/) {
- &perror("WARN: $_ missing name in PLIST");
- } elsif ($_ =~ /^\@(owner)(\s+)(.*)/) {
- $space = $2;
- $user = $3;
- &perror("WARN: multiple spaces found in \"$_\"") if ($space =~ /\s\s+/);
- &perror("WARN: \"$user\" unknown user in PLIST") if (getpwnam($user) eq "");
- } elsif ($_ =~ /^\@(group)(\s+)(.*)/) {
- $space = $2;
- $group = $3;
- &perror("WARN: multiple spaces found in \"$_\"") if ($space =~ /\s\s+/);
- &perror("WARN: \"$group\" unknown group in PLIST") if (getgrnam($group) eq "");
+ } elsif ($_ =~ /^\@(owner|group)\s/) {
+ &perror("WARN: \@$1 should not be needed in PLIST");
} elsif ($_ =~ /^\@(dirrm|option)/) {
; # no check made
} else {