summaryrefslogtreecommitdiff
path: root/portato/backend/catapult
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/catapult
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]))
td>2-3/+9 Bumps [github.com/emersion/go-message](https://github.com/emersion/go-message) from 0.13.0 to 0.14.0. - [Release notes](https://github.com/emersion/go-message/releases) - [Commits](https://github.com/emersion/go-message/compare/v0.13.0...v0.14.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 2020-11-28Bump github.com/google/go-cmp from 0.5.2 to 0.5.4 (#37)dependabot[bot]2-3/+3 Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.2 to 0.5.4. - [Release notes](https://github.com/google/go-cmp/releases) - [Commits](https://github.com/google/go-cmp/compare/v0.5.2...v0.5.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 2020-11-23Fix release.ymlv0.5.2René 'Necoro' Neumann1-3/+10 2020-11-23Prepare v0.5.2René 'Necoro' Neumann3-3/+8 2020-11-20Bump github.com/gabriel-vasile/mimetype from 1.1.1 to 1.1.2dependabot[bot]2-3/+3 Bumps [github.com/gabriel-vasile/mimetype](https://github.com/gabriel-vasile/mimetype) from 1.1.1 to 1.1.2. - [Release notes](https://github.com/gabriel-vasile/mimetype/releases) - [Changelog](https://github.com/gabriel-vasile/mimetype/blob/master/CHANGELOG.md) - [Commits](https://github.com/gabriel-vasile/mimetype/compare/v1.1.1...v1.1.2) Signed-off-by: dependabot[bot] <support@github.com> 2020-11-04Clean dependabot.ymlRené 'Necoro' Neumann1-4/+0