diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-07-28 15:24:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 11:29:35 +0100 |
commit | e68370cbf13e728fc3bf942ec12b85d8a3f3d25b (patch) | |
tree | d6edcd9a9e5a7ad4965dd3bed96e1a72b0438687 /bitbake/lib/toaster/toastergui/widgets.py | |
parent | 6520feb4ab115514f6eb255bea7666fc8fea5b22 (diff) | |
download | poky-e68370cbf13e728fc3bf942ec12b85d8a3f3d25b.tar.gz |
bitbake: bitbake: toastergui: Toastertables don't replace dash in cache key
The dash character was being stripped from the cache key when we sanitise
it for the memcache backend. This meant that we were getting a false hit
on the cache and returning non descending results which are indicated by
the dash prefix on the field name.
(Bitbake rev: 18743274a94966d2cd8d17d163e4dbab501a8a52)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/widgets.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/widgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py index 5f6b47b663..08854024f5 100644 --- a/bitbake/lib/toaster/toastergui/widgets.py +++ b/bitbake/lib/toaster/toastergui/widgets.py | |||
@@ -252,8 +252,8 @@ class ToasterTable(TemplateView): | |||
252 | for key, val in kwargs.iteritems(): | 252 | for key, val in kwargs.iteritems(): |
253 | cache_name = cache_name + str(key) + str(val) | 253 | cache_name = cache_name + str(key) + str(val) |
254 | 254 | ||
255 | # No special chars allowed in the cache name | 255 | # No special chars allowed in the cache name apart from dash |
256 | cache_name = re.sub(r'[^A-Za-z0-9]', "", cache_name) | 256 | cache_name = re.sub(r'[^A-Za-z0-9-]', "", cache_name) |
257 | data = cache.get(cache_name) | 257 | data = cache.get(cache_name) |
258 | 258 | ||
259 | if data: | 259 | if data: |