mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Fix confused build logs on wiki, maybe
This commit is contained in:
parent
cd7f12e44e
commit
5ab225e1e1
1 changed files with 5 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue