From: Zac Medico Date: Sun, 22 Apr 2012 20:34:18 +0000 (-0700) Subject: fakedbapi.cp_list: remove obsolete virtual code X-Git-Tag: v2.2.0_alpha101~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e4ac7ed0d47b68b95da7854881a29e40d77f6e2f;p=portage.git fakedbapi.cp_list: remove obsolete virtual code This should have been included in commit d30db49bcaecbdeb20f6d4e180979b60b6260f69. --- 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: