Add DeprecationWarning to dep_virtual function.
authorZac Medico <zmedico@gentoo.org>
Fri, 19 Feb 2010 22:07:57 +0000 (22:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 19 Feb 2010 22:07:57 +0000 (22:07 -0000)
svn path=/main/trunk/; revision=15403

pym/portage/__init__.py

index a52e2ed4efb2a79c31c1ded2f9b6d4a8216664f1..654dc2c458c8b4b2816d97b9cf502b4d4f74a124 100644 (file)
@@ -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: