summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_scheduler.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-12 22:06:33 +0200
committerMattia Rizzolo <mattia@mapreri.org>2015-04-16 16:38:49 +0200
commit2875d50816ae4b5c71619dd0bb5dafa69f854de6 (patch)
treecf451d79392641665e6cfb64f12bf05bacb1fffe /bin/reproducible_scheduler.py
parent2f2d1345d3dc1e04b167b8839427fc091bd127e6 (diff)
downloadjenkins.debian.net-2875d50816ae4b5c71619dd0bb5dafa69f854de6.tar.xz
reproducible: _html_indexes: move the code generating the schedule page to its own function. it does not make sense to bloat the generic code by special casing it
Diffstat (limited to 'bin/reproducible_scheduler.py')
-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 5d3fccc2..bb465ea6 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -22,7 +22,7 @@ from apt_pkg import version_compare
from urllib.request import urlopen
from reproducible_common import *
-from reproducible_html_indexes import build_page
+from reproducible_html_indexes import generate_schedule
from reproducible_html_packages import gen_packages_html
from reproducible_html_packages import purge_old_pages
@@ -215,7 +215,7 @@ def scheduler():
total = int(query_db(query)[0][0])
log.info('Currently scheduled packages in all suites: ' + str(total))
if total > 250:
- build_page('scheduled') # from reproducible_html_indexes
+ generate_schedule() # from reproducible_html_indexes
log.info(str(total) + ' packages already scheduled' +
', nothing to do here.')
return
@@ -281,7 +281,7 @@ def scheduler():
log.info('### Suite ' + suite + ' done ###')
log.info('==============================================================')
# update the scheduled page
- build_page('scheduled') # from reproducible_html_indexes, build global page
+ generate_schedule() # from reproducible_html_indexes
# build the kgb message text
message = 'Scheduled in ' + '+'.join(SUITES) + ': ' + \
'+'.join([str(len(untested[x])) for x in SUITES]) + ' new and untested packages, ' + \