diff options
Diffstat (limited to 'bin/reproducible_html_indexes.py')
-rwxr-xr-x | bin/reproducible_html_indexes.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py index 29c8669e..d5a8aebf 100755 --- a/bin/reproducible_html_indexes.py +++ b/bin/reproducible_html_indexes.py @@ -535,38 +535,10 @@ def build_page(page, suite=None, arch=None): log.info('"' + title + '" now available at ' + desturl) -def generate_schedule(arch): - """ the schedule pages are very different than others index pages """ - log.info('Building the schedule index page for ' + arch + '...') - title = 'Packages currently scheduled on ' + arch + ' for testing for build reproducibility' - query = 'SELECT sch.date_scheduled, s.suite, s.architecture, s.name ' + \ - 'FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id ' + \ - 'WHERE sch.date_build_started = "" AND s.architecture="{arch}" ORDER BY sch.date_scheduled' - text = Template('$tot packages are currently scheduled for testing on $arch:') - html = '' - rows = query_db(query.format(arch=arch)) - html += build_leading_text_section({'text': text}, rows, defaultsuite, arch) - html += '<p><table class="scheduled">\n' + tab - html += '<tr><th>#</th><th>scheduled at</th><th>suite</th>' - html += '<th>architecture</th><th>source package</th></tr>\n' - for row in rows: - # 0: date_scheduled, 1: suite, 2: arch, 3: pkg name - pkg = row[3] - html += tab + '<tr><td> </td><td>' + row[0] + '</td>' - html += '<td>' + row[1] + '</td><td>' + row[2] + '</td><td><code>' - html += link_package(pkg, row[1], row[2], bugs) - html += '</code></td></tr>\n' - html += '</table></p>\n' - destfile = BASE + '/index_' + arch + '_scheduled.html' - desturl = REPRODUCIBLE_URL + '/index_' + arch + '_scheduled.html' - write_html_page(title=title, body=html, destfile=destfile, style_note=True) - - bugs = get_bugs() if __name__ == '__main__': for arch in ARCHS: - generate_schedule(arch) for suite in SUITES: if arch == 'armhf' and suite != 'unstable': continue |