aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-11-15 16:07:59 (GMT)
committerZac Medico <zmedico@gentoo.org>2012-11-15 16:08:55 (GMT)
commita6a9b6dd6342a6009097944b38163ccc66908f0e (patch)
tree5c609cc1d83a5106db32e4bb96e74f99123b076d
parentEAPI="4-python" and EAPI="5-progress": Add support for use.aliases and packag... (diff)
downloadportage-a6a9b6dd6342a6009097944b38163ccc66908f0e.zip
portage-a6a9b6dd6342a6009097944b38163ccc66908f0e.tar.gz
portage-a6a9b6dd6342a6009097944b38163ccc66908f0e.tar.bz2
fixdbentries: add deprecation warning
It's unused since commit c974a023882485b8eeae35bac35c1f00d1a0725b.
-rw-r--r--pym/portage/update.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/update.py b/pym/portage/update.py
index 61cb8b6..3f76030 100644
--- a/pym/portage/update.py
+++ b/pym/portage/update.py
@@ -6,6 +6,7 @@ import io
import re
import stat
import sys
+import warnings
from portage import os
from portage import _encodings
@@ -142,6 +143,10 @@ def fixdbentries(update_iter, dbdir, eapi=None, parent=None):
"""Performs update commands which result in search and replace operations
for each of the files in dbdir (excluding CONTENTS and environment.bz2).
Returns True when actual modifications are necessary and False otherwise."""
+
+ warnings.warn("portage.update.fixdbentries() is deprecated",
+ DeprecationWarning, stacklevel=2)
+
mydata = {}
for myfile in [f for f in os.listdir(dbdir) if f not in ignored_dbentries]:
file_path = os.path.join(dbdir, myfile)