[yum-cvs] yum/yum packages.py,1.63,1.64

Jeremy Katz katzj at linux.duke.edu
Sat Sep 2 22:58:57 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv30327/yum

Modified Files:
	packages.py 
Log Message:
add back getProvidesNames() as deprecated, spew a deprecation warning
for prcoPrintable() as well


Index: packages.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/packages.py,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- packages.py	2 Sep 2006 07:47:27 -0000	1.63
+++ packages.py	2 Sep 2006 22:58:55 -0000	1.64
@@ -23,6 +23,7 @@
 import types
 import fnmatch
 import stat
+import warnings
 from rpmUtils import RpmUtilsError
 import rpmUtils.arch
 import rpmUtils.miscutils
@@ -319,6 +320,11 @@
             results.append(name)
         return results
 
+    def getProvidesNames(self):
+        warnings.warn('getProvidesNames() will go away in a future version of Yum.\n',
+                      DeprecationWarning, stacklevel=2)
+        return self.provides_names
+
     def _prcoTuple2Printable(self, prcoTuple):
         """convert the prco tuples into a nicer human string"""
         # maybe move this into yum.misc to clean it out of here
@@ -449,7 +455,8 @@
     
     def prcoPrintable(self, prcoTuple):
         """convert the prco tuples into a nicer human string"""
-        #fixme - warning deprecation
+        warnings.warn('prcoPrintable() will go away in a future version of Yum.\n',
+                      DeprecationWarning, stacklevel=2)
         return self._prcoTuple2Printable(prcoTuple)
 
     def requiresList(self):




More information about the Yum-cvs-commits mailing list