From 5eff66e2ccd1e1ec65c3588cae695583b249821f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 20:52:10 +0000 Subject: [PATCH] Show a deprecation warning when pkgmerge() is called. (trunk r15415) svn path=/main/branches/2.1.7/; revision=15637 --- pym/portage/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 642fd4681..57a15cbb4 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -8798,6 +8798,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 -- 2.26.2