Browse Source

Check for duplicate distinfo items.

PR:		267168
Submitted by:	rodrigo
Joe Clarke 1 year ago
parent
commit
f524bb7d73
1 changed files with 3 additions and 0 deletions
  1. 3 0
      portlint.pl

+ 3 - 0
portlint.pl

@@ -445,6 +445,9 @@ sub checkdistinfo {
 		}
 		if (/(\S+)\s+\((\S+)\)\s+=\s+(\S+)/) {
 			my ($tag, $path, $value) = ($1, $2, $3);
+			if ($records{$path}{$tag}) {
+				&perror("FATAL", $file, $., "duplicate file listed.");
+			}
 			$records{$path}{$tag} = $value;
 
 			if (!$algorithms{$tag} && $tag ne "SIZE") {