fixdbentries: add deprecation warning
authorZac Medico <zmedico@gentoo.org>
Thu, 15 Nov 2012 16:07:59 +0000 (08:07 -0800)
committerZac Medico <zmedico@gentoo.org>
Thu, 15 Nov 2012 16:08:55 +0000 (08:08 -0800)
It's unused since commit c974a023882485b8eeae35bac35c1f00d1a0725b.

pym/portage/update.py

index 61cb8b64d3931e973582dbd8b8cce4a2f42ffc62..3f76030766e776b3d20f3e614a2d29e048e60a43 100644 (file)
@@ -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)