Print a useful message and exit when the .redo directory disappears.

This commit is contained in:
Avery Pennarun 2010-11-22 03:34:37 -08:00
commit dce0076554
2 changed files with 17 additions and 1 deletions

View file

@ -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()