1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

increase size of package field for jobhistory output.

(Product build packages are usually longer than 24 chars)
This commit is contained in:
Adrian Schröter 2009-02-25 08:39:29 +00:00
parent accc64ad41
commit 7bd970716c

View File

@ -2824,7 +2824,7 @@ def print_jobhistory(apiurl, prj, current_package, platform, arch):
f = http_GET(u) f = http_GET(u)
root = ET.parse(f).getroot() root = ET.parse(f).getroot()
print "time package reason code build time" print "time package reason code build time"
for node in root.findall('jobhist'): for node in root.findall('jobhist'):
package = node.get('package') package = node.get('package')
reason = node.get('reason') reason = node.get('reason')
@ -2847,7 +2847,7 @@ def print_jobhistory(apiurl, prj, current_package, platform, arch):
else: else:
waitbuild = " %2dm %2ds" % (waittm.tm_min, waittm.tm_sec) waitbuild = " %2dm %2ds" % (waittm.tm_min, waittm.tm_sec)
print '%s %-25s %-16s %-16s %s' % (endtime, package[0:24], reason[0:15], code[0:15], waitbuild) print '%s %-50s %-16s %-16s %s' % (endtime, package[0:49], reason[0:15], code[0:15], waitbuild)
def get_commitlog(apiurl, prj, package, revision): def get_commitlog(apiurl, prj, package, revision):