From e68370cbf13e728fc3bf942ec12b85d8a3f3d25b Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 28 Jul 2015 15:24:40 +0100 Subject: 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 Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/widgets.py') 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): for key, val in kwargs.iteritems(): cache_name = cache_name + str(key) + str(val) - # No special chars allowed in the cache name - cache_name = re.sub(r'[^A-Za-z0-9]', "", cache_name) + # No special chars allowed in the cache name apart from dash + cache_name = re.sub(r'[^A-Za-z0-9-]', "", cache_name) data = cache.get(cache_name) if data: -- cgit v1.2.3-54-g00ecf