projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90cbb04
)
Warn if cpv_getkey() is given invalid input that triggers legacy code.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 24 Sep 2009 06:45:18 +0000
(06:45 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 24 Sep 2009 06:45:18 +0000
(06:45 -0000)
svn path=/main/trunk/; revision=14401
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 7909a403e94a51490241200721f851e27f64d63c..407ff3ee74e0f380d828856d3a90b72d8ae77413 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-8078,6
+8078,10
@@
def cpv_getkey(mycpv):
m = _cpv_key_re.match(mycpv)
if m is not None:
return m.group(2)
+
+ warnings.warn("portage.cpv_getkey() called with invalid cpv: '%s'",
+ DeprecationWarning)
+
myslash = mycpv.split("/", 1)
mysplit=pkgsplit(myslash[-1])
if mysplit is None: