From 2875d50816ae4b5c71619dd0bb5dafa69f854de6 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 12 Apr 2015 22:06:33 +0200 Subject: 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 --- bin/reproducible_scheduler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_scheduler.py') 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, ' + \ -- cgit v1.2.3-54-g00ecf