From e4ac7ed0d47b68b95da7854881a29e40d77f6e2f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Apr 2012 13:34:18 -0700 Subject: fakedbapi.cp_list: remove obsolete virtual code This should have been included in commit d30db49bcaecbdeb20f6d4e180979b60b6260f69. --- pym/portage/dbapi/virtual.py | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3-1-g7c22