Selaa lähdekoodia

Add check for redundant CONFLICTS version matching.

Joe Clarke 2 vuotta sitten
vanhempi
commit
bb574e3d13
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      portlint.pl

+ 4 - 0
portlint.pl

@@ -3010,6 +3010,10 @@ DIST_SUBDIR EXTRACT_ONLY
 				if ($selfconflict) {
 					&perror("FATAL", "", -1, "Package conflicts with itself. ".
 						"You should remove \"$conflict\" from CONFLICTS.");
+				} elsif ($conflict =~ m/-\[0-9\]\*$/) {
+					&perror("WARN", $file, -1, "CONFLICTS definition \"$conflict\" ".
+						"ends in redundant version pattern. ".
+						"You should remove \"-[0-9]*\" from that pattern.");
 				}
 				$seen{$conflict} = 1;
 			}