[oe-commits] [bitbake] 19/44: toaster: fix typo which prevents filters from working

git at git.openembedded.org git at git.openembedded.org
Mon Jun 13 21:11:07 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit c9dcc477b53713bac00d891cb0e0fd3235e75b1d
Author: Elliot Smith <elliot.smith at intel.com>
AuthorDate: Tue Jun 7 16:29:35 2016 +0100

    toaster: fix typo which prevents filters from working
    
    'k' was replaced by 'key' at some point but not fixed in the
    body of the loop. This caused a failure when the the query
    was constructed for a filtered queryset, due to the variable
    not being defined.
    
    Signed-off-by: Elliot Smith <elliot.smith at intel.com>
    Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
 lib/toaster/toastergui/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index 1f908ea..d58aff0 100755
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -268,7 +268,7 @@ def _get_filtering_query(filter_string):
         or_values = kv[1].split(OR_VALUE_SEPARATOR)
         query = None
         for key, val in zip(or_keys, or_values):
-            x = __get_q_for_val(k, val)
+            x = __get_q_for_val(key, val)
             query = query | x if query else x
 
         and_query = and_query & query if and_query else query

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


More information about the Openembedded-commits mailing list