Print a useful message and exit when the .redo directory disappears.
This commit is contained in:
parent
2dbd47100d
commit
dce0076554
2 changed files with 17 additions and 1 deletions
|
|
@ -153,6 +153,9 @@ def main(targets, shouldbuildfunc):
|
|||
jwack.get_token(t)
|
||||
if retcode[0] and not vars.KEEP_GOING:
|
||||
break
|
||||
if not state.is_sane():
|
||||
retcode[0] = 205
|
||||
break
|
||||
lock = state.Lock(t)
|
||||
lock.trylock()
|
||||
if not lock.owned:
|
||||
|
|
@ -173,6 +176,9 @@ def main(targets, shouldbuildfunc):
|
|||
if retcode[0] and not vars.KEEP_GOING:
|
||||
break
|
||||
if locked:
|
||||
if not state.is_sane():
|
||||
retcode[0] = 205
|
||||
break
|
||||
t = locked.pop(0)
|
||||
lock = state.Lock(t)
|
||||
lock.waitlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue