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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user