diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-04-22 13:34:18 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-04-22 13:34:18 -0700 |
commit | e4ac7ed0d47b68b95da7854881a29e40d77f6e2f (patch) | |
tree | 422bdbf005b1236eca23ab32fa65ad8c5f6bf7e4 | |
parent | 771b63d4d6d4b1d4c8f987fddb8b6cc91a4a7fac (diff) | |
download | portage-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.
-rw-r--r-- | pym/portage/dbapi/virtual.py | 3 |
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: |