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:
parent
cd7f12e44e
commit
5ab225e1e1
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user