fakedbapi.cp_list: remove obsolete virtual code
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Apr 2012 20:34:18 +0000 (13:34 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Apr 2012 20:34:18 +0000 (13:34 -0700)
This should have been included in commit
d30db49bcaecbdeb20f6d4e180979b60b6260f69.

pym/portage/dbapi/virtual.py

index 8a35d0ce90851c2d1cb4ad4470770bda8ef46054..84b6b9367340217699d56fb51934ab40b4e8f9b2 100644 (file)
@@ -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: