aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-04-22 13:34:18 -0700
committerZac Medico <zmedico@gentoo.org>2012-04-22 13:34:18 -0700
commite4ac7ed0d47b68b95da7854881a29e40d77f6e2f (patch)
tree422bdbf005b1236eca23ab32fa65ad8c5f6bf7e4 /pym/portage/dbapi
parentPrint working directory in die message to simplify debugging. (diff)
downloadportage-e4ac7ed0d47b68b95da7854881a29e40d77f6e2f.tar.gz
portage-e4ac7ed0d47b68b95da7854881a29e40d77f6e2f.tar.bz2
portage-e4ac7ed0d47b68b95da7854881a29e40d77f6e2f.zip
fakedbapi.cp_list: remove obsolete virtual code
This should have been included in commit d30db49bcaecbdeb20f6d4e180979b60b6260f69.
Diffstat (limited to 'pym/portage/dbapi')
-rw-r--r--pym/portage/dbapi/virtual.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/dbapi/virtual.py b/pym/portage/dbapi/virtual.py
index 8a35d0ce9..84b6b9367 100644
--- a/pym/portage/dbapi/virtual.py
+++ b/pym/portage/dbapi/virtual.py
@@ -49,8 +49,7 @@ class fakedbapi(dbapi):
# match cache uses the result from dep_expand for the cache_key.
cache_key = (mycp, mycp)
cachelist = self._match_cache.get(cache_key)
- # cp_list() doesn't expand old-style virtuals
- if cachelist and cachelist[0].startswith(mycp):
+ if cachelist is not None:
return cachelist[:]
cpv_list = self.cpdict.get(mycp)
if cpv_list is None: