cd2nroff: only require "added-in" for source "libcurl"

To allow this script to be used by trurl easier.

Closes #14844
This commit is contained in:
Daniel Stenberg 2024-09-10 10:21:08 +02:00
parent c4ab33370a
commit 7020bc9c4a
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -304,7 +304,7 @@ sub single {
print STDERR "$f:$line:1:ERROR: no 'Source:' in $f\n";
return 2;
}
if(!$addedin) {
if(($source eq "libcurl") && !$addedin) {
print STDERR "$f:$line:1:ERROR: no 'Added-in:' in $f\n";
return 2;
}