From: Zac Medico Date: Tue, 2 Mar 2010 20:46:27 +0000 (-0000) Subject: Add DeprecationWarning to dep_virtual function. (trunk r15403) X-Git-Tag: v2.1.8~97 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dba95e1fb560f18bcfe87e9086c13395e834719f;p=portage.git Add DeprecationWarning to dep_virtual function. (trunk r15403) svn path=/main/branches/2.1.7/; revision=15625 --- 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: