2 Commits eca0bdab9b ... 7f14454919

Author SHA1 Message Date
  Joe Clarke 7f14454919 Remove the checks for WWW in pkg-descr. 1 month ago
  Joe Clarke 97e44e0ea7 Bump to version 2.22. 4 months ago
1 changed files with 1 additions and 31 deletions
  1. 1 31
      portlint.pl

+ 1 - 31
portlint.pl

@@ -51,7 +51,7 @@ $portdir = '.';
 
 # version variables
 my $major = 2;
-my $minor = 21;
+my $minor = 22;
 my $micro = 0;
 
 # default setting - for FreeBSD
@@ -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);
 }