1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-05 08:50:08 +02:00

Fix confused build logs on wiki, maybe

This commit is contained in:
Ciaran Gultnieks 2013-05-08 15:40:03 +01:00
parent cd7f12e44e
commit 5ab225e1e1

View File

@ -656,12 +656,12 @@ def main():
wikilog = str(e)
if options.wiki and wikilog:
newpage = site.Pages[app['id'] + '/lastbuild']
txt = wikilog
if len(txt) > 8192:
txt = txt[-8192:]
try:
newpage.save(str(be), summary='Build log')
newpage = site.Pages[app['id'] + '/lastbuild']
txt = wikilog
if len(txt) > 8192:
txt = txt[-8192:]
newpage.save(wikilog, summary='Build log')
except:
print "Error while attempting to publish build log"