svn path=/main/branches/2.1.7/; revision=15607
return Atom(mydep).cp
except InvalidAtom:
try:
- return Atom('=' + mydep).cp
+ atom = Atom('=' + mydep)
except InvalidAtom:
pass
+ else:
+ warnings.warn(_("invalid input to %s: '%s', use %s instead") % \
+ ('portage.dep.dep_getkey()', mydep, 'portage.cpv_getkey()'),
+ DeprecationWarning)
+ return atom.cp
# Fall back to legacy code for backward compatibility.
warnings.warn(_("%s is deprecated, use %s instead") % \