summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-05-02 12:24:32 +0200
committerHolger Levsen <holger@layer-acht.org>2017-05-02 12:24:32 +0200
commit0ef6d32402f810ef955d87cc395dbffd08db304a (patch)
tree2e25093a32dcaac53da6b540fd88401671370100
parent73128df6552c004109768284c5eeed987e3abd92 (diff)
downloadjenkins.debian.net-0ef6d32402f810ef955d87cc395dbffd08db304a.tar.xz
reproducible Debian: use human-readable time format
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_scheduler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 3b760b6c..bc611468 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -240,7 +240,7 @@ def update_sources(suite):
for arch in ARCHS:
log.info('Updating sources db for %s/%s...', suite, arch)
update_sources_db(suite, arch, sources)
- log.info('DB update done for %s/%s done at %s.', suite, arch, datetime.now())
+ log.info('DB update done for %s/%s done at %s.', suite, arch, datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
def update_sources_db(suite, arch, sources):
@@ -730,7 +730,7 @@ if __name__ == '__main__':
log.info('Updating sources tables for all suites.')
for suite in SUITES:
update_sources(suite)
- log.info('Sources for suite %s done at %s.', suite, datetime.now())
+ log.info('Sources for suite %s done at %s.', suite, datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
purge_old_pages()
query = "SELECT count(*) " + \
"FROM schedule AS p JOIN sources AS s ON s.id=p.package_id " + \
@@ -745,7 +745,7 @@ if __name__ == '__main__':
log.info('%s packages already scheduled for %s, probably scheduling some '
'more...', overall, arch)
message += scheduler(arch) + '\n'
- log.info('Arch %s scheduled at %s.', arch, datetime.now())
+ log.info('Arch %s scheduled at %s.', arch, datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
if message != '':
# build the kgb message text
message = 'Scheduled in ' + '+'.join(SUITES) + ':\n' + message