summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-11-27 08:23:46 -0800
committerZac Medico <zmedico@gentoo.org>2012-11-27 08:23:46 -0800
commit02a6bf1ac95861831a303f220c7a41b9bbd398ab (patch)
tree8eab7c2cfaa3d85bcfdb3fc94979d6929484f5d4 /pym/portage/dbapi
parente760c8d2a4ccc56e351ac37904c715f596b58e42 (diff)
downloadportage-02a6bf1ac95861831a303f220c7a41b9bbd398ab.tar.gz
portage-02a6bf1ac95861831a303f220c7a41b9bbd398ab.tar.bz2
portage-02a6bf1ac95861831a303f220c7a41b9bbd398ab.zip
portdbapi: DeprecationWarning for 'pms' cache
Diffstat (limited to 'pym/portage/dbapi')
-rw-r--r--pym/portage/dbapi/porttree.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 115fc7f29..9f0140cdf 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -204,6 +204,13 @@ class portdbapi(dbapi):
cache.ec = self.repositories.get_repo_for_location(tree).eclass_db
except AttributeError:
pass
+
+ if not cache.complete_eclass_entries:
+ warnings.warn(
+ ("Repository '%s' used deprecated 'pms' cache format. "
+ "Please migrate to 'md5-dict' format.") % (conf.name,),
+ DeprecationWarning)
+
return cache
def _init_cache_dirs(self):