1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-25 23:58:57 +02:00

for large numbers of packages, group the results in chunks

This commit is contained in:
Dr. Peter Poeml
2006-09-29 09:55:27 +00:00
parent f91bd60f3b
commit c758321df2

View File

@@ -1213,8 +1213,11 @@ def get_prj_results(prj):
for node in root.find('packstatuslist'):
pacs.append(node.get('name'))
max_pacs = 40
for startpac in range(0, len(pacs), max_pacs):
offset = 0
for pac in pacs:
for pac in pacs[startpac:startpac+max_pacs]:
r.append(' |' * offset + ' ' + pac)
offset += 1
@@ -1234,7 +1237,7 @@ def get_prj_results(prj):
line = []
line.append(' ')
for pac in pacs:
for pac in pacs[startpac:startpac+max_pacs]:
line.append(status[pac])
line.append(' ')
line.append(' %s %s' % (target['repo'], target['arch']))
@@ -1243,6 +1246,7 @@ def get_prj_results(prj):
r.append(line)
r.append('')
r.append(' Legend:')
for i, j in buildstatus_symbols.items():
r.append(' %s %s' % (j, i))