aboutsummaryrefslogtreecommitdiff
path: root/devel/portlint/src
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-01-11 08:18:48 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-01-11 08:18:48 +0000
commit27754b5c4eef471d5b44982b4c7b01299e9e983d (patch)
tree9d76b0c1683e7a4eb9c4b0ab29319344fc3869e3 /devel/portlint/src
parenta698c9b4998296126e1ae8af2fe0ce00e63e57b5 (diff)
downloadports-27754b5c4eef471d5b44982b4c7b01299e9e983d.tar.gz
ports-27754b5c4eef471d5b44982b4c7b01299e9e983d.zip
Notes
Diffstat (limited to 'devel/portlint/src')
-rw-r--r--devel/portlint/src/portlint.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/portlint/src/portlint.pl b/devel/portlint/src/portlint.pl
index 16521143c593..08b13be587c8 100644
--- a/devel/portlint/src/portlint.pl
+++ b/devel/portlint/src/portlint.pl
@@ -1199,7 +1199,13 @@ PATCH_SITES PATCHFILES PATCH_DIST_STRIP
&checkearlier($file, $tmp, @varnames);
$tmp = "\n" . $tmp;
- if ($tmp =~ /\nMAINTAINER\??=[^\n]+/) {
+ if ($tmp =~ /\nMAINTAINER\??=([^\n]+)/) {
+ my $addr = $1;
+ $addr =~ s/^\s*//;
+ $addr =~ s/\s*$//;
+ if ($addr =~ /[\s,<>()]/) {
+ &perror("FATAL: MAINTAINER should be a single address without comment.");
+ }
$tmp =~ s/\nMAINTAINER\??=[^\n]+//;
} elsif ($whole !~ /\nMAINTAINER[?]?=/) {
&perror("FATAL: no MAINTAINER listed in $file.") unless ($slaveport && $makevar{MAINTAINER} ne '');