projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba975a8
)
Show a deprecation warning when digestParseFile() is called. (trunk r15414)
author
Zac Medico
<zmedico@gentoo.org>
Tue, 2 Mar 2010 20:52:01 +0000
(20:52 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 2 Mar 2010 20:52:01 +0000
(20:52 -0000)
svn path=/main/branches/2.1.7/; revision=15636
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index e311c9db89d2df65592469297da8d29c223612cf..642fd4681b31d4e097356fc7e4958bd08a0217a5 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-5469,6
+5469,9
@@
def digestParseFile(myfilename, mysettings=None):
DEPRECATED: this function is now only a compability wrapper for
portage.manifest.Manifest()."""
+ warnings.warn("portage.digestParseFile() is deprecated",
+ DeprecationWarning, stacklevel=2)
+
mysplit = myfilename.split(os.sep)
if mysplit[-2] == "files" and mysplit[-1].startswith("digest-"):
pkgdir = os.sep + os.sep.join(mysplit[:-2]).strip(os.sep)