REUSE: bump reuse to v6, add more fences to fix issues

Closes #18895
Closes #18897
This commit is contained in:
Viktor Szakats 2025-10-06 20:35:38 +02:00
parent beeb1ae762
commit 13f10add17
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
4 changed files with 9 additions and 1 deletions

View File

@ -5,5 +5,5 @@
cmakelang==0.6.13
codespell==2.4.1
pytype==2024.10.11
reuse==5.1.1
reuse==6.0.0
ruff==0.13.2

View File

@ -156,7 +156,9 @@ sub single {
return 2;
}
if(!$spdx) {
# REUSE-IgnoreStart
print STDERR "$f:$line:1:ERROR: no 'SPDX-License-Identifier:' field present\n";
# REUSE-IgnoreEnd
return 2;
}
last;

View File

@ -320,7 +320,9 @@ sub single {
return 2;
}
if(!$spdx) {
# REUSE-IgnoreStart
print STDERR "$f:$line:1:ERROR: no 'SPDX-License-Identifier:' field present\n";
# REUSE-IgnoreEnd
return 2;
}
if($section == 3) {

View File

@ -661,12 +661,14 @@ sub single {
elsif(/^Experimental: yes/i) {
$experimental=1;
}
# REUSE-IgnoreStart
elsif(/^C: (.*)/i) {
$copyright=$1;
}
elsif(/^SPDX-License-Identifier: (.*)/i) {
$spdx=$1;
}
# REUSE-IgnoreEnd
elsif(/^Help: *(.*)/i) {
;
}
@ -697,7 +699,9 @@ sub single {
return 2;
}
if(!$spdx) {
# REUSE-IgnoreStart
print STDERR "$f:$line:1:ERROR: no 'SPDX-License-Identifier:' field present\n";
# REUSE-IgnoreEnd
return 2;
}
last;