[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
- Previous message: [yum-cvs] yum/yum __init__.py, 1.238, 1.239 depsolve.py, 1.97, 1.98 packages.py, 1.62, 1.63 repos.py, 1.97, 1.98 rpmsack.py, 1.22, 1.23 sqlitesack.py, 1.45, 1.46 yumRepo.py, 1.17, 1.18
- Next message: [yum-cvs] yum/yum depsolve.py,1.98,1.99
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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):
- Previous message: [yum-cvs] yum/yum __init__.py, 1.238, 1.239 depsolve.py, 1.97, 1.98 packages.py, 1.62, 1.63 repos.py, 1.97, 1.98 rpmsack.py, 1.22, 1.23 sqlitesack.py, 1.45, 1.46 yumRepo.py, 1.17, 1.18
- Next message: [yum-cvs] yum/yum depsolve.py,1.98,1.99
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Yum-cvs-commits
mailing list