which calls it.
svn path=/main/trunk/; revision=14322
getCPFromCPV = cpv_getkey
def key_expand(mykey, mydb=None, use_cache=1, settings=None):
+ """This is deprecated because it just returns the first match instead of
+ raising AmbiguousPackageName like cpv_expand does."""
+ warnings.warn("portage.key_expand() is deprecated", DeprecationWarning)
mysplit=mykey.split("/")
if settings is None:
settings = globals()["settings"]
import codecs
import logging
import stat
+import warnings
def _src_uri_validate(cpv, eapi, src_uri):
"""
return "/".join([self.portroot, mysplit[0], psplit[0], mysplit[1]])+".ebuild"
def resolve_specific(self, myspec):
+ warnings.warn(
+ "portage.dbapi.porttree.portagetree.resolve_specific() is deprecated",
+ DeprecationWarning)
cps = catpkgsplit(myspec)
if not cps:
return None