summaryrefslogtreecommitdiffstats
path: root/utils/agljobtemplate.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/agljobtemplate.py')
-rw-r--r--utils/agljobtemplate.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index dda2d77..493407f 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -152,10 +152,22 @@ class Agljobtemplate(object):
job['kernel_version'] = build_version
if url_version:
- job['kernel_version'] = url_version
+ kernel_version = url_version
+ # if this is an 'int', then it was --patchset
+ try:
+ kernel_version = "patchset-%d" % int(kernel_version)
+ except:
+ pass
+ job['kernel_version'] = kernel_version
if url_branch:
- job['vcs_branch'] = url_branch
+ vcs_branch = url_branch
+ # if this is an 'int', then it was --changeid
+ try:
+ vcs_branch = "changeid-%d" % int(vcs_branch)
+ except:
+ pass
+ job['vcs_branch'] = vcs_branch
if rfs_type is not None:
job['rootfs_type'] = rfs_type