tsafer template variables - devuan-releasebot - devuan's releasebot reimplemented (scorsh version)
HTML git clone git://parazyd.org/devuan-releasebot.git
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit da9199f7da3062c3f41f9b18733a76beacadb37a
DIR parent 4a8d40ab337c448837df6c5ed6b72a38e402a504
HTML Author: parazyd <parazyd@dyne.org>
Date: Mon, 24 Jul 2017 18:32:13 +0200
safer template variables
Diffstat:
M funcs.py | 16 ++++++++--------
M templates/binaries-config.xml | 14 +++++++-------
M templates/repos-config.xml | 6 +++---
M templates/source-config.xml | 8 ++++----
4 files changed, 22 insertions(+), 22 deletions(-)
---
DIR diff --git a/funcs.py b/funcs.py
t@@ -41,14 +41,14 @@ def fill_template(pkgname, jobtype, arches=None, desc=None,
for lab in jlabels:
jlablist += ' <string>%s</string>\n' % lab
- tmpl = tmpl.replace('[PKGNAME]', pkgname)
- tmpl = tmpl.replace('[GIT_URI]', git_uri)
- tmpl = tmpl.replace('[GIT_CREDENTIALS]', vcs_credentials)
- tmpl = tmpl.replace('[DESCRIPTION]', desc)
- tmpl = tmpl.replace('[ARCHITECTURES]', archlist)
- tmpl = tmpl.replace('[LABELS]', jlablist)
- tmpl = tmpl.replace('[BUILD_ADDVAR]', buildvar)
- tmpl = tmpl.replace('[RUNSEQUENTIAL]', sequential)
+ tmpl = tmpl.replace('{{{PKGNAME}}}', pkgname)
+ tmpl = tmpl.replace('{{{GIT_URI}}}', git_uri)
+ tmpl = tmpl.replace('{{{GIT_CREDENTIALS}}}', vcs_credentials)
+ tmpl = tmpl.replace('{{{DESCRIPTION}}}', desc)
+ tmpl = tmpl.replace('{{{ARCHITECTURES}}}', archlist)
+ tmpl = tmpl.replace('{{{LABELS}}}', jlablist)
+ tmpl = tmpl.replace('{{{BUILD_ADDVAR}}}', buildvar)
+ tmpl = tmpl.replace('{{{RUNSEQUENTIAL}}}', sequential)
return tmpl
return None
DIR diff --git a/templates/binaries-config.xml b/templates/binaries-config.xml
t@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<matrix-project plugin="matrix-project@1.4">
<actions/>
- <description>[DESCRIPTION]</description>
+ <description>{{{DESCRIPTION}}}</description>
<logRotator class="hudson.tasks.LogRotator">
<daysToKeep>-1</daysToKeep>
<numToKeep>5</numToKeep>
t@@ -36,20 +36,20 @@
<hudson.matrix.TextAxis>
<name>architecture</name>
<values>
-[ARCHITECTURES]
+{{{ARCHITECTURES}}}
</values>
</hudson.matrix.TextAxis>
<hudson.matrix.LabelAxis>
<name>label</name>
<values>
-[LABELS]
+{{{LABELS}}}
</values>
</hudson.matrix.LabelAxis>
</axes>
parazyd.org:70 /git/devuan-releasebot/commit/da9199f7da3062c3f41f9b18733a76beacadb37a.gph:73: line too long