From 734f4dbd2fc993b27b044bcd3bd8c25f86be40c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 11 May 2010 20:02:10 +0000 Subject: [PATCH] match rpm pattern with regexp --- web/MonitorWeb/monitorweb/controllers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/MonitorWeb/monitorweb/controllers.py b/web/MonitorWeb/monitorweb/controllers.py index 3d68fe6..149a397 100644 --- a/web/MonitorWeb/monitorweb/controllers.py +++ b/web/MonitorWeb/monitorweb/controllers.py @@ -350,7 +350,8 @@ class Root(controllers.RootController, MonitorXmlrpcServer): if 'rpmvalue' in data and 'rpms' in data: if agg['rpms']: rpm_list = agg['rpms'].split() - rpm_list = filter(lambda x: data['rpmvalue'] in x, rpm_list) + rpm_list = filter(lambda x: re.match(data['rpmvalue'], x, re.I), + rpm_list) agg['rpms'] = " ".join(rpm_list) query.append(agg) -- 2.43.0