Skip to content

Commit

Permalink
_activate_contents: fix reporting of conflicting paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Aug 12, 2024
1 parent ef2bc78 commit b2e06d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/registry2.0/portimage.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -757,12 +757,12 @@ proc _activate_contents {port {rename_list {}}} {
set conflicting_paths [dict get $conflicts_port_to_paths $conflicting_port]
set pathcounter 0
set pathtotal [llength $conflicting_paths]
foreach {_ actual_path} $conflicting_paths {
foreach p $conflicting_paths {
if {$pathcounter >= 3 && $pathtotal > 4} {
append msg " (... [expr {$pathtotal - $pathcounter}] more not shown)\n"
break
}
append msg " ${actual_path}\n"
append msg " [lindex $p 1]\n"
incr pathcounter
}
}
Expand Down

0 comments on commit b2e06d5

Please sign in to comment.