[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible Debian: Prefer .format over concatentation.

Holger Levsen holger at layer-acht.org
Fri Aug 12 11:05:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit fc219f27e049b0816c40ed587a14005a631abd4b
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Aug 11 20:48:12 2016 +0100

    reproducible Debian: Prefer .format over concatentation.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_html_packages.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 1c0f6d9..250cec0 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,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list