Skip to content

Commit

Permalink
checksites: handle empty sglobal
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Mar 8, 2025
1 parent f6e8a68 commit fb16351
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/port1.0/fetch_common.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ proc portfetch::checksites {sitelists mirrorfile} {
set untagged_env_sites [list]
if {[llength $extras] >= 2} {
lassign $extras sglobal senv
lappend full_list $sglobal
set global_sites [mirror_sites $sglobal "" "" $mirrorfile]
if {$sglobal ne ""} {
lappend full_list $sglobal
set global_sites [mirror_sites $sglobal "" "" $mirrorfile]
}
if {[info exists env($senv)]} {
foreach env_site $env($senv) {
lappend full_list $env_site
Expand Down

0 comments on commit fb16351

Please sign in to comment.