mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-30 19:56:14 +01:00
- fixed #497987 - live buildlog was broken
This commit is contained in:
parent
4a924553b2
commit
8cc699fe01
@ -2872,9 +2872,15 @@ def streamfile(url, http_meth = http_GET, bufsize=8192):
|
|||||||
def print_buildlog(apiurl, prj, package, platform, arch, offset = 0):
|
def print_buildlog(apiurl, prj, package, platform, arch, offset = 0):
|
||||||
"""prints out the buildlog on stdout"""
|
"""prints out the buildlog on stdout"""
|
||||||
query = {'nostream' : '1', 'start' : '%s' % offset}
|
query = {'nostream' : '1', 'start' : '%s' % offset}
|
||||||
|
while True:
|
||||||
|
query['start'] = offset
|
||||||
|
start_offset = offset
|
||||||
u = makeurl(apiurl, ['build', prj, platform, arch, package, '_log'], query=query)
|
u = makeurl(apiurl, ['build', prj, platform, arch, package, '_log'], query=query)
|
||||||
for data in streamfile(u):
|
for data in streamfile(u):
|
||||||
|
offset += len(data)
|
||||||
print data
|
print data
|
||||||
|
if start_offset == offset:
|
||||||
|
break
|
||||||
|
|
||||||
def get_buildinfo(apiurl, prj, package, platform, arch, specfile=None, addlist=None):
|
def get_buildinfo(apiurl, prj, package, platform, arch, specfile=None, addlist=None):
|
||||||
query = []
|
query = []
|
||||||
|
Loading…
Reference in New Issue
Block a user