Skip to content

Commit

Permalink
restore: don't overwrite existing failure reasons
Browse files Browse the repository at this point in the history
This prevents reporting that the actual failed port was skipped due to
a failed dependency (namely itself).
  • Loading branch information
jmroot committed Jul 22, 2024
1 parent bfd0981 commit 80d03a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/macports1.0/restore.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,9 @@ namespace eval restore {
-command [lambda {level mode dependencies node} {
if {$mode eq "enter"} {
uplevel $level [subst -nocommands {
dict set failed $node [list "skipped" "dependency \$portname failed"]
if {![dict exists \$failed $node]} {
dict set failed $node [list "skipped" "dependency \$portname failed"]
}
}]
}
} $level]
Expand Down

0 comments on commit 80d03a8

Please sign in to comment.