From 6d5fc819a68d1077b44900cb082044435542d213 Mon Sep 17 00:00:00 2001 From: grandpig Date: Mon, 3 Aug 2026 18:44:34 +0800 Subject: [PATCH] scripts: validate the first Comments-URI entry Signed-off-by: grandpig --- scripts/buildtable.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/buildtable.pl b/scripts/buildtable.pl index 3f5ba6a5ba..c230c381ba 100755 --- a/scripts/buildtable.pl +++ b/scripts/buildtable.pl @@ -197,7 +197,7 @@ die "Unacceptable license $val in $fn" unless exists $AcceptableLicenses{$val} or ($val eq 'PD' and exists $GrandfatheredPD{$bipnum}) or ($val eq 'CC-BY-SA-4.0' and exists $GrandfatheredCCBySA{$bipnum}); } } elsif ($field eq 'Comments-URI') { - if ($found{'Comments-URI'}) { + if (not $found{'Comments-URI'}) { my $first_comments_uri = sprintf('https://github.com/bitcoin/bips/wiki/Comments:BIP-%04d', $bipnum); die "First Comments-URI must be exactly \"$first_comments_uri\" in $fn" unless $val eq $first_comments_uri; }