summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dep.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index fe3f04f59..47da7cedb 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -937,9 +937,14 @@ def dep_getkey(mydep):
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") % \