summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_packages.py
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-06-29 16:45:30 -0400
committerHolger Levsen <holger@layer-acht.org>2016-07-05 17:24:56 +0200
commit4ffa9b55eab852ad174732c3357efe97dcea0fcc (patch)
treeff2a637cee51c685c94451723d3b5c4947632d8c /bin/reproducible_html_packages.py
parent4cd9250228ad1d17f6ce01a517e8897902c96bb4 (diff)
downloadjenkins.debian.net-4ffa9b55eab852ad174732c3357efe97dcea0fcc.tar.xz
reproducible debian: add template for project links in left navigation
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_html_packages.py')
-rwxr-xr-xbin/reproducible_html_packages.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 3a234ccf..00bf8eb5 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -17,11 +17,13 @@ apt_pkg.init_system()
# Templates used for creating package pages
renderer = pystache.Renderer();
package_page_template = renderer.load_template(
- TEMPLATE_PATH + '/package_page')
+ os.path.join(TEMPLATE_PATH, 'package_page'))
suitearch_section_template = renderer.load_template(
- TEMPLATE_PATH + '/package_suitearch_section')
+ os.path.join(TEMPLATE_PATH, 'package_suitearch_section'))
suitearch_details_template = renderer.load_template(
- TEMPLATE_PATH + '/package_suitearch_details')
+ os.path.join(TEMPLATE_PATH, 'package_suitearch_details'))
+project_links_template = renderer.load_template(
+ os.path.join(TEMPLATE_PATH, 'project_links'))
def sizeof_fmt(num):
for unit in ['B','KB','MB','GB']:
@@ -292,7 +294,7 @@ def gen_packages_html(packages, no_clean=False):
gen_suitearch_section(package, suite, arch)
history = '{}/{}.html'.format(HISTORY_URI, pkg)
- project_links = html_project_links.substitute()
+ project_links = renderer.render(project_links_template)
html = renderer.render(package_page_template, {
'package': pkg,