From: Zac Medico Date: Fri, 12 Jan 2007 05:19:37 +0000 (-0000) Subject: Return early from finddigest if findname2 found nothing. X-Git-Tag: v2.1.2~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dcaa4aad86d1ac601c4d49750ee42191a6c281b7;p=portage.git Return early from finddigest if findname2 found nothing. svn path=/main/trunk/; revision=5589 --- 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, "/")