Skip to content

Commit e34a156

Browse files
committed
port_binary_distributable: output properly capitalised licence names
1 parent 46a5473 commit e34a156

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jobs/distributable_lib.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ proc check_licenses {portName variantInfo} {
220220
set sub_names {}
221221
foreach full_lic $sublist {
222222
# chop off any trailing version number
223-
set lic [remove_version [string tolower $full_lic]]
223+
set lic [remove_version $full_lic]
224224
# add name to the list for later
225225
lappend sub_names $lic
226-
if {[info exists ::license_good($lic)]} {
226+
if {[info exists ::license_good([string tolower $lic])]} {
227227
set any_good 1
228228
}
229229
}
@@ -299,7 +299,7 @@ proc check_licenses {portName variantInfo} {
299299
}
300300

301301
if {!$any_good} {
302-
lappend failures "\"$portName\" is not distributable because its dependency \"$aPort\" has license \"$lic\" which is not known to be distributable: [join $parentPath " -> "]"
302+
lappend failures "\"$portName\" is not distributable because its dependency \"$aPort\" has license \"$full_lic\" which is not known to be distributable: [join $parentPath " -> "]"
303303
} elseif {!$any_compatible} {
304304
lappend failures "\"$portName\" is not distributable because its license \"$top_lic\" conflicts with license \"$full_lic\": [join $parentPath " -> "]"
305305
}

0 commit comments

Comments
 (0)