From 22476a23f90ac0522ada9970498f24247312918b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 21 Feb 2010 09:32:15 +0000 Subject: Show a deprecation warning when pkgmerge() is called. svn path=/main/trunk/; revision=15415 --- pym/portage/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pym') 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 -- cgit v1.2.3-1-g7c22