diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-02-21 09:32:15 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-02-21 09:32:15 +0000 |
commit | 22476a23f90ac0522ada9970498f24247312918b (patch) | |
tree | 3a1fbecfba72dc5a3a6ff2739a921faf72fbf138 | |
parent | a004fce70b50e4216434fd836e8cfd701b7175a5 (diff) | |
download | portage-22476a23f90ac0522ada9970498f24247312918b.tar.gz portage-22476a23f90ac0522ada9970498f24247312918b.tar.bz2 portage-22476a23f90ac0522ada9970498f24247312918b.zip |
Show a deprecation warning when pkgmerge() is called.
svn path=/main/trunk/; revision=15415
-rw-r--r-- | pym/portage/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 8b9ee3160..8af1bb4b1 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -8801,6 +8801,10 @@ def pkgmerge(mytbz2, myroot, mysettings, mydbapi=None, """will merge a .tbz2 file, returning a list of runtime dependencies that must be satisfied, or None if there was a merge error. This code assumes the package exists.""" + + warnings.warn("portage.pkgmerge() is deprecated", + DeprecationWarning, stacklevel=2) + global db if mydbapi is None: mydbapi = db[myroot]["bintree"].dbapi |