[oe-commits] [bitbake] branch 1.30 updated: toaster: Fix adding of bitbake variables containing ':'

git at git.openembedded.org git at git.openembedded.org
Wed Aug 31 17:01:47 UTC 2016


rpurdie pushed a commit to branch 1.30
in repository bitbake.

The following commit(s) were added to refs/heads/1.30 by this push:
       new  bee144e   toaster: Fix adding of bitbake variables containing ':'
bee144e is described below

commit bee144eeed6c08ec2829533e82f94405058ce453
Author: Alexander Egorenkov <Alexander.Egorenkov at vector.com>
AuthorDate: Tue Aug 30 13:18:58 2016 +0300

    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]
    
    Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov at vector.com>
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/toaster/toastergui/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index bd5bf63..febd17f 100755
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -2168,7 +2168,7 @@ if True:
             if 'configvarAdd' in request.POST:
                 t=request.POST['configvarAdd'].strip()
                 if ":" in t:
-                    variable, value = t.split(":")
+                    variable, value = t.split(":", 1)
                 else:
                     variable = t
                     value = ""
@@ -2178,7 +2178,7 @@ if True:
             if 'configvarChange' in request.POST:
                 t=request.POST['configvarChange'].strip()
                 if ":" in t:
-                    variable, value = t.split(":")
+                    variable, value = t.split(":", 1)
                 else:
                     variable = t
                     value = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list