Skip to content

Commit

Permalink
action_list: handle missing version gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Dec 9, 2024
1 parent bbc10c2 commit 74660c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/port/port.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -3669,7 +3669,13 @@ proc action_list { action portlist opts } {
if {[dict exists $portinfo portdir]} {
set outdir [dict get $portinfo portdir]
}
puts [format "%-30s @%-14s %s" [dict get $portinfo name] [dict get $portinfo version] $outdir]
if {[dict exists $portinfo version]} {
set version [dict get $portinfo version]
} else {
set version {}
ui_warn "required option 'version' is missing for $name"
}
puts [format "%-30s @%-14s %s" $name $version $outdir]
}
}

Expand Down

0 comments on commit 74660c8

Please sign in to comment.