浏览代码

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") {