[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: Escape package name in "Schedule a new build" links
Mattia Rizzolo
gitlab at salsa.debian.org
Sun Aug 26 16:15:19 BST 2018
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
f5acd9ed by Chris Lamb at 2018-08-26T15:11:34Z
Escape package name in "Schedule a new build" links
eg. getfem++
- - - - -
0d754ea1 by Mattia Rizzolo at 2018-08-26T15:14:55Z
Merge branch 'escape-reschedule-urls' of salsa.debian.org:lamby/jenkins.debian.net
MR: https://salsa.debian.org/qa/jenkins.debian.net/merge_requests/11
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
2 changed files:
- bin/reproducible_html_packages.py
- mustache-templates/reproducible/package_suitearch_section.mustache
Changes:
=====================================
bin/reproducible_html_packages.py
=====================================
@@ -12,6 +12,7 @@
import os
import errno
+import urllib
import pystache
import apt_pkg
apt_pkg.init_system()
@@ -256,6 +257,7 @@ def gen_suitearch_section(package, current_suite, current_arch):
dbd_page_uri = dbd_links.get('dbd_page_uri', '')
suites.append({
'package': package.name,
+ 'package_quote_plus': urllib.parse.quote_plus(package.name),
'status': status.value.name,
'version': version,
'build_date': build_date,
=====================================
mustache-templates/reproducible/package_suitearch_section.mustache
=====================================
@@ -17,7 +17,7 @@
<a href="{{package_uri}}" target="_parent" title="{{spokenstatus}}: {{version}} on {{build_date}}">
{{version}}
</a> in <a href="/debian/{{suite}}/{{arch}}/" title="Go to: summary of all tests for {{arch}}/{{suite}}" target="_parent">{{suite}}</a>
- <a href="/cgi-bin/schedule?suite={{suite}}&architecture={{arch}}&pkg={{package}}" target="_parent" title="Schedule a new build">♻</a>
+ <a href="/cgi-bin/schedule?suite={{suite}}&architecture={{arch}}&pkg={{package_quote_plus}}" target="_parent" title="Schedule a new build">♻</a>
{{/current_suitearch}}
{{#current_suitearch}}
{{version}} in <a href="/debian/{{suite}}/{{arch}}/" title="Go to: summary of all tests for {{arch}}/{{suite}}" target="_parent">{{suite}}</a>
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/04cb3e61ee9b817384ee41cacdbee094737bd384...0d754ea1a0f1bec23a1b206b5a42a63aef5a4904
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/04cb3e61ee9b817384ee41cacdbee094737bd384...0d754ea1a0f1bec23a1b206b5a42a63aef5a4904
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180826/eb46d755/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list