summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-04-01 23:17:54 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-04-01 23:17:54 +0200
commitacf7b55874cd33990bd9daa45d784a8e6d934690 (patch)
tree438d2acf723fee5b0ebb5215e7100230e9e81830 /portato/backend
parent963ed59d2d4c34cc59f75e82db0410500a2a7524 (diff)
downloadportato-acf7b55874cd33990bd9daa45d784a8e6d934690.tar.gz
portato-acf7b55874cd33990bd9daa45d784a8e6d934690.tar.bz2
portato-acf7b55874cd33990bd9daa45d784a8e6d934690.zip
Catapult 'list_categories' does not filter anymore
Diffstat (limited to '')
-rw-r--r--portato/backend/catapult/system.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/portato/backend/catapult/system.py b/portato/backend/catapult/system.py
index 5ae01b6..5b019e4 100644
--- a/portato/backend/catapult/system.py
+++ b/portato/backend/catapult/system.py
@@ -149,11 +149,11 @@ class CatapultSystem (SystemInterface):
return self._wrap_find_all(name, True, "system", withVersion, only_cpv)
def list_categories (self, name = None):
- if not name:
- name = ".*"
- else:
- name = ".*%s.*" % name
- return [str(x) for x in self.proxy.list_categories(name)]
+ cats = self.proxy.list_categories()
+ if name:
+ cats = catapult.filter_list("*%s*" % name, cats)
+
+ return map(str, cats)
def sort_package_list(self, pkglist):
return self.geneticize_list(self.proxy.sort_package_list([x.get_cpv() for x in pkglist]))