1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Show errors for duplicate source entries.

This commit is contained in:
Bryan Drewery 2018-01-25 20:56:18 +00:00
parent da465b1377
commit d7b83ead05
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459958

View File

@ -74,6 +74,13 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
}
{
if ($1 in srcs) {
printf "%5d: %s has duplicate entries\n", NR, $1 | sort
error[NR] = 1
next
}
srcs[$1] = 1
if (lastdate > $3) {
printf "%5d: date going backwards from %s to %s\n", NR, lastdate, $3 | sort
error[NR] = 1