summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_packages.py
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2016-08-11 20:48:12 +0100
committerHolger Levsen <holger@layer-acht.org>2016-08-12 13:05:14 +0200
commitfc219f27e049b0816c40ed587a14005a631abd4b (patch)
tree699f58973093973ab5023019f410e05442644852 /bin/reproducible_html_packages.py
parent22aaf4188e18c54d66eb4a341ea1835df728f680 (diff)
downloadjenkins.debian.net-fc219f27e049b0816c40ed587a14005a631abd4b.tar.xz
reproducible Debian: Prefer .format over concatentation.
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_html_packages.py')
-rwxr-xr-xbin/reproducible_html_packages.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 1c0f6d94..250cec0c 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -362,8 +362,13 @@ def gen_packages_html(packages, no_clean=False):
'history_arch_uri': '{}/{}/{}.html'.format(HISTORY_URI, a, pkg)
})
project_links = renderer.render(project_links_template)
- desturl = REPRODUCIBLE_URL + RB_PKG_URI + '/' + suite + \
- '/' + arch + '/' + pkg + '.html'
+ desturl = '{}{}/{}/{}/{}.html'.format(
+ REPRODUCIBLE_URL,
+ RB_PKG_URI,
+ suite,
+ arch,
+ pkg,
+ )
navigation_html = renderer.render(package_navigation_template, {
'package': pkg,