From dba95e1fb560f18bcfe87e9086c13395e834719f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 20:46:27 +0000 Subject: [PATCH] Add DeprecationWarning to dep_virtual function. (trunk r15403) svn path=/main/branches/2.1.7/; revision=15625 --- pym/portage/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 2cd41f26e..1fe8b3d44 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7771,6 +7771,8 @@ def unmerge(cat, pkg, myroot, mysettings, mytrimworld=1, vartree=None, def dep_virtual(mysplit, mysettings): "Does virtual dependency conversion" + warnings.warn("portage.dep_virtual() is deprecated", + DeprecationWarning, stacklevel=2) newsplit=[] myvirtuals = mysettings.getvirtuals() for x in mysplit: -- 2.26.2