From 7ce480f6cdbd6fb8e5a35b5278f15c9adbad220c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 19 Feb 2010 22:07:57 +0000 Subject: [PATCH] Add DeprecationWarning to dep_virtual function. svn path=/main/trunk/; revision=15403 --- pym/portage/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index a52e2ed4e..654dc2c45 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7774,6 +7774,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