Skip to content
Permalink
Browse files

Fix skipping of ports that already failed to mirror

  • Loading branch information
jmroot committed Mar 10, 2018
1 parent 09a06d5 commit b6ea277b6e57b2c7acacc0435f0c945d00f6e833
Showing with 3 additions and 3 deletions.
  1. +3 −3 tools/mirror-multi.tcl
@@ -147,6 +147,7 @@ proc mirror_port {portinfo_list} {
}
if {[catch {mportopen $porturl [list subport $portname] {}} mport]} {
ui_error "mportopen $porturl failed: $mport"
set tried_and_failed($portname) 1
return 1
}
array unset portinfo
@@ -158,7 +159,6 @@ proc mirror_port {portinfo_list} {
mportexec $mport clean
if {[mportexec $mport mirror] != 0 || [mportexec $mport checksum] != 0} {
set any_failed 1
set tried_and_failed($portname) 1
}
}
mportclose $mport
@@ -171,7 +171,6 @@ proc mirror_port {portinfo_list} {
if {[catch {mportopen $porturl [list subport $portname] [list $variant +]} mport]} {
ui_error "mportopen $porturl failed: $mport"
set any_failed 1
set tried_and_failed($portname) 1
continue
}
array unset portinfo
@@ -191,7 +190,6 @@ proc mirror_port {portinfo_list} {
if {[catch {mportopen $porturl [list subport $portname os_major $os_major os_arch $os_arch] {}} mport]} {
ui_error "mportopen $porturl failed: $mport"
set any_failed 1
set tried_and_failed($portname) 1
continue
}
array unset portinfo
@@ -222,6 +220,8 @@ proc mirror_port {portinfo_list} {

if {$any_failed == 0} {
set_mirror_done $portname
} else {
set tried_and_failed($portname) 1
}
return $any_failed
}

0 comments on commit b6ea277

Please sign in to comment.
You can’t perform that action at this time.