mirror of
https://git.codelinaro.org/clo/tools/repo.git
synced 2025-06-28 15:27:43 +08:00
Fix StopIteration exception during repo {sync,status}
If we run out of entries next() will throw StopIteration. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@ -920,8 +920,11 @@ class Project(object):
|
|||||||
if out:
|
if out:
|
||||||
out = iter(out[:-1].split('\0'))
|
out = iter(out[:-1].split('\0'))
|
||||||
while out:
|
while out:
|
||||||
info = out.next()
|
try:
|
||||||
path = out.next()
|
info = out.next()
|
||||||
|
path = out.next()
|
||||||
|
except StopIteration:
|
||||||
|
break
|
||||||
|
|
||||||
class _Info(object):
|
class _Info(object):
|
||||||
def __init__(self, path, omode, nmode, oid, nid, state):
|
def __init__(self, path, omode, nmode, oid, nid, state):
|
||||||
|
Reference in New Issue
Block a user