mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-17 19:39:43 +00:00
ports-mgmt/portlint: Update to 2.22.1
Remove the WWW check for pkg-descr. PR: 278069
This commit is contained in:
parent
21799f273c
commit
2157107ea5
@ -1,6 +1,5 @@
|
||||
PORTNAME= portlint
|
||||
PORTVERSION= 2.22.0
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.22.1
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -52,7 +52,7 @@ $portdir = '.';
|
||||
# version variables
|
||||
my $major = 2;
|
||||
my $minor = 22;
|
||||
my $micro = 0;
|
||||
my $micro = 1;
|
||||
|
||||
# default setting - for FreeBSD
|
||||
my $portsdir = '/usr/ports';
|
||||
@ -544,36 +544,6 @@ sub checkdescr {
|
||||
"other local characters. files should be in ".
|
||||
"plain 7-bit ASCII");
|
||||
}
|
||||
if ($file =~ /\bpkg-descr/ && $tmp =~ m,https?://,) {
|
||||
my $has_url = 0;
|
||||
my $has_www = 0;
|
||||
my $cpan_url = 0;
|
||||
my $has_endslash = 0;
|
||||
foreach my $line (grep($_ =~ "https?://", split(/\n+/, $tmp))) {
|
||||
$has_url = 1;
|
||||
if ($line =~ m,WWW:[ \t]+https?://,) {
|
||||
$has_www = 1;
|
||||
if ($line =~ m,search.cpan.org,) {
|
||||
$cpan_url = 1;
|
||||
if ($line =~ m,/$,) {
|
||||
$has_endslash = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$has_url) {
|
||||
&perror("WARN", $file, -1, "add \"WWW: URL:\" for this port if possible");
|
||||
}
|
||||
|
||||
if ($cpan_url && !$has_endslash) {
|
||||
&perror("WARN", $file, -1, "end WWW CPAN URL with a \"/\"");
|
||||
}
|
||||
|
||||
if ($has_url && ! $has_www) {
|
||||
&perror("FATAL", $file, -1, "contains a URL but no \"WWW:\"");
|
||||
}
|
||||
}
|
||||
close(IN);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user