1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-05 15:13:39 +02:00

catch ctrl-c during log following

This commit is contained in:
Dr. Peter Poeml
2006-06-29 23:41:10 +00:00
parent b54e25c46b
commit d159226078

View File

@@ -556,12 +556,15 @@ To find out <platform> and <arch>, you can use 'osc results'
platform = args[0]
arch = args[1]
offset = 0
while True:
log_chunk = get_log(project, package, platform, arch, offset)
if len(log_chunk) == 0:
break
offset += len(log_chunk)
print log_chunk.strip()
try:
while True:
log_chunk = get_log(project, package, platform, arch, offset)
if len(log_chunk) == 0:
break
offset += len(log_chunk)
print log_chunk.strip()
except KeyboardInterrupt:
pass
def history(args):