diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-11-27 07:45:53 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-11-27 07:45:53 -0800 |
commit | e760c8d2a4ccc56e351ac37904c715f596b58e42 (patch) | |
tree | b0605be70b2541b1570215c3c26763ab0f060d01 /pym/portage/tests | |
parent | bdaca74c12d592d9b955e7009539f1b598497ec2 (diff) | |
download | portage-e760c8d2a4ccc56e351ac37904c715f596b58e42.tar.gz portage-e760c8d2a4ccc56e351ac37904c715f596b58e42.tar.bz2 portage-e760c8d2a4ccc56e351ac37904c715f596b58e42.zip |
egencache: enable md5-dict format by default
WARNING: Portage versions prior to portage-2.1.11.14 will NOT
recognize the 'md5-dict' format unless it is explicitly listed
in metadata/layout.conf (refer to portage(5) for example usage).
WARNING: For backward compatibility, the obsolete 'pms' cache
format will still be generated by default if the metadata/cache/
directory exists in the repository.
Diffstat (limited to 'pym/portage/tests')
-rw-r--r-- | pym/portage/tests/dbapi/test_portdb_cache.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/tests/dbapi/test_portdb_cache.py b/pym/portage/tests/dbapi/test_portdb_cache.py index 6526246e1..3290d08e5 100644 --- a/pym/portage/tests/dbapi/test_portdb_cache.py +++ b/pym/portage/tests/dbapi/test_portdb_cache.py @@ -51,8 +51,8 @@ class PortdbCacheTestCase(TestCase): """),), egencache_cmd + ("--update",), - (lambda: os.path.exists(pms_cache_dir),), - (lambda: not os.path.exists(md5_cache_dir),), + (lambda: not os.path.exists(pms_cache_dir),), + (lambda: os.path.exists(md5_cache_dir),), python_cmd + (textwrap.dedent(""" import os, sys, portage if portage.portdb.porttree_root not in portage.portdb._pregen_auxdb: @@ -60,8 +60,8 @@ class PortdbCacheTestCase(TestCase): """),), python_cmd + (textwrap.dedent(""" import os, sys, portage - from portage.cache.metadata import database as pms_database - if not isinstance(portage.portdb._pregen_auxdb[portage.portdb.porttree_root], pms_database): + from portage.cache.flat_hash import md5_database + if not isinstance(portage.portdb._pregen_auxdb[portage.portdb.porttree_root], md5_database): sys.exit(1) """),), |