diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-12 05:19:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-12 05:19:37 +0000 |
commit | dcaa4aad86d1ac601c4d49750ee42191a6c281b7 (patch) | |
tree | 7929712ba17ab7004e3fcc687356ea082b6b108a | |
parent | 38e6da9a1bd70996ca24b6068fe0f672880ac2f3 (diff) | |
download | portage-dcaa4aad86d1ac601c4d49750ee42191a6c281b7.tar.gz portage-dcaa4aad86d1ac601c4d49750ee42191a6c281b7.tar.bz2 portage-dcaa4aad86d1ac601c4d49750ee42191a6c281b7.zip |
Return early from finddigest if findname2 found nothing.
svn path=/main/trunk/; revision=5589
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 2 insertions, 0 deletions
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, "/") |