mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Add build time to /lastbuild on wiki
This commit is contained in:
parent
6b749852b5
commit
25a84a05b5
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import subprocess
|
||||||
import re
|
import re
|
||||||
import tarfile
|
import tarfile
|
||||||
import traceback
|
import traceback
|
||||||
|
import time
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
import common
|
import common
|
||||||
|
|
@ -674,6 +675,7 @@ def main():
|
||||||
txt = wikilog
|
txt = wikilog
|
||||||
if len(txt) > 8192:
|
if len(txt) > 8192:
|
||||||
txt = 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')
|
newpage.save(wikilog, summary='Build log')
|
||||||
except:
|
except:
|
||||||
print "Error while attempting to publish build log"
|
print "Error while attempting to publish build log"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue