diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-06-07 16:29:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:04 +0100 |
commit | de3984ccdb4fc404e35f6f0ed149816b888411bd (patch) | |
tree | 9321c2bc1839be8dfad076de1ed64c71475a0460 /bitbake/lib/toaster | |
parent | ef72321fe42206ded3d4cf32b5a31747483c6d85 (diff) | |
download | poky-de3984ccdb4fc404e35f6f0ed149816b888411bd.tar.gz |
bitbake: 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.
(Bitbake rev: 37fb9a364e645baadda30cc74a18baa565f39857)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 1f908ea209..d58aff0a1b 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -268,7 +268,7 @@ def _get_filtering_query(filter_string): | |||
268 | or_values = kv[1].split(OR_VALUE_SEPARATOR) | 268 | or_values = kv[1].split(OR_VALUE_SEPARATOR) |
269 | query = None | 269 | query = None |
270 | for key, val in zip(or_keys, or_values): | 270 | for key, val in zip(or_keys, or_values): |
271 | x = __get_q_for_val(k, val) | 271 | x = __get_q_for_val(key, val) |
272 | query = query | x if query else x | 272 | query = query | x if query else x |
273 | 273 | ||
274 | and_query = and_query & query if and_query else query | 274 | and_query = and_query & query if and_query else query |