From 7614c3c1b33441c785cc204b7d47529ed8f9c473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 4 Sep 2010 03:59:43 +0200 Subject: Fix system.split_cpv --- portato/backend/portage/system.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 990a39a..030c120 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -235,7 +235,11 @@ class PortageSystem (SystemInterface): return filter(self.find_lambda(name), categories) def split_cpv (self, cpv): - cpv = portage.dep_getcpv(cpv) + try: + cpv = portage.dep_getcpv(cpv) + except portage.exception.InvalidAtom: + pass + return portage.catpkgsplit(cpv) def sort_package_list(self, pkglist, only_cpv = False): -- cgit v1.2.3