1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

Add build time to /lastbuild on wiki

This commit is contained in:
Ciaran Gultnieks 2013-05-15 18:18:24 +01:00
parent 6b749852b5
commit 25a84a05b5

View File

@ -24,6 +24,7 @@ import subprocess
import re
import tarfile
import traceback
import time
from optparse import OptionParser
import common
@ -674,6 +675,7 @@ def main():
txt = wikilog
if len(txt) > 8192:
txt = txt[-8192:]
txt = "Build completed at " + time.strftime("%Y-%m-%d %H:%M:%SZ", time.gmtime()) + "\n\n" + txt
newpage.save(wikilog, summary='Build log')
except:
print "Error while attempting to publish build log"