From 2339fbb2fc4f54161787afebb768d60afc3511ba Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Fri, 9 Apr 2010 19:29:22 +0200 Subject: Implement REPLACING_VERSIONS and REPLACED_BY_VERSION --- pym/portage/versions.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pym/portage/versions.py') diff --git a/pym/portage/versions.py b/pym/portage/versions.py index a4765ef1c..89ab6e180 100644 --- a/pym/portage/versions.py +++ b/pym/portage/versions.py @@ -335,6 +335,11 @@ def cpv_getkey(mycpv): else: return mysplit[0] +def cpv_getversion(mycpv): + """Returns the v (including revision) from an cpv.""" + cp = cpv_getkey(mycpv) + return mycpv[len(cp+"-"):] + def catsplit(mydep): return mydep.split("/", 1) -- cgit v1.2.3-1-g7c22