From 8419ab22d69ed0d89809f322aef16105ad6bb127 Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Fri, 16 Jun 2017 12:09:06 +0200 Subject: [PATCH] sync: Continue job if some fetchs failed but force-broken is set With --force-broken it continue to fetch other projects but nothing is added in directory because it abort some lines later. Change-Id: I32c4a4619b3028893dc4f98e8d4e5bc5c09adb27 --- subcmds/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subcmds/sync.py b/subcmds/sync.py index ef023274..2d00eb7d 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -393,7 +393,7 @@ later is required to fix a server side protocol bug. t.join() # If we saw an error, exit with code 1 so that other scripts can check. - if err_event.isSet(): + if err_event.isSet() and not opt.force_broken: print('\nerror: Exited sync due to fetch errors', file=sys.stderr) sys.exit(1)