소스 검색

Check for duplicate distinfo items.

PR:		267168
Submitted by:	rodrigo
Joe Clarke 1 년 전
부모
커밋
f524bb7d73
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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") {