Skip to content
Permalink
Browse files

portindex: return >0 value if some ports failed

  • Loading branch information
l2dy committed Mar 14, 2018
1 parent 7cf76ec commit 217d852d23721781f72299287c182573386b8269
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/port/portindex.tcl
@@ -299,3 +299,7 @@ puts "\nTotal number of ports parsed:\t$stats(total)\
\nPorts successfully parsed:\t[expr {$stats(total) - $stats(failed)}]\
\nPorts failed:\t\t\t$stats(failed)\
\nUp-to-date ports skipped:\t$stats(skipped)\n"

if {$stats(failed) > 0} {
exit 1
}

1 comment on commit 217d852

@jmroot

This comment has been minimized.

Copy link
Member

@jmroot jmroot commented on 217d852 Mar 14, 2018

As you may have noticed, this broke the tests. I'm pretty sure there are quite a few other places where it's assumed a non-zero exit status from portindex is a catastrophic failure.

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