From dcaa4aad86d1ac601c4d49750ee42191a6c281b7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 12 Jan 2007 05:19:37 +0000 Subject: [PATCH] Return early from finddigest if findname2 found nothing. svn path=/main/trunk/; revision=5589 --- pym/portage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage.py b/pym/portage.py index a76af264a..317b22003 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5562,6 +5562,8 @@ class portdbapi(dbapi): def finddigest(self,mycpv): try: mydig = self.findname2(mycpv)[0] + if not mydig: + return "" mydigs = string.split(mydig, "/")[:-1] mydig = string.join(mydigs, "/") -- 2.26.2