diff options
author | Alexander Egorenkov <Alexander.Egorenkov@vector.com> | 2016-08-30 13:18:58 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-31 20:37:44 +0100 |
commit | 7e11efef59c3102948d3eafe5b136c493deee3b5 (patch) | |
tree | 4a656a626318ffe81d688efbe54eb309e151ce28 /bitbake | |
parent | 8854de1ffd283be9fc899ad10027b7872e66d2a6 (diff) | |
download | poky-7e11efef59c3102948d3eafe5b136c493deee3b5.tar.gz |
bitbake: toaster: Fix adding of bitbake variables containing ':'
This fix is a backport from toaster-next.
Krogoth Toaster is unable to add a variable containing ':'
and fails with the following error message:
error on request:
too many values to unpack
Traceback (most recent call last):
File "bitbake/lib/toaster/toastergui/views.py", line 2171, in
xhr_configvaredit
variable, value = t.spli(":")
ValueError: too many values to unpack.
[YOCTO #10170]
(Bitbake rev: bee144eeed6c08ec2829533e82f94405058ce453)
Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@vector.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index bd5bf63341..febd17fba2 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -2168,7 +2168,7 @@ if True: | |||
2168 | if 'configvarAdd' in request.POST: | 2168 | if 'configvarAdd' in request.POST: |
2169 | t=request.POST['configvarAdd'].strip() | 2169 | t=request.POST['configvarAdd'].strip() |
2170 | if ":" in t: | 2170 | if ":" in t: |
2171 | variable, value = t.split(":") | 2171 | variable, value = t.split(":", 1) |
2172 | else: | 2172 | else: |
2173 | variable = t | 2173 | variable = t |
2174 | value = "" | 2174 | value = "" |
@@ -2178,7 +2178,7 @@ if True: | |||
2178 | if 'configvarChange' in request.POST: | 2178 | if 'configvarChange' in request.POST: |
2179 | t=request.POST['configvarChange'].strip() | 2179 | t=request.POST['configvarChange'].strip() |
2180 | if ":" in t: | 2180 | if ":" in t: |
2181 | variable, value = t.split(":") | 2181 | variable, value = t.split(":", 1) |
2182 | else: | 2182 | else: |
2183 | variable = t | 2183 | variable = t |
2184 | value = "" | 2184 | value = "" |