diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-04-09 19:29:22 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-04-10 14:06:48 -0700 |
commit | 2339fbb2fc4f54161787afebb768d60afc3511ba (patch) | |
tree | a19ebdcf6c5c48a3590e6802390315f3c4cce251 /pym/portage/versions.py | |
parent | def1566b00be9350e945f8162d6be758b15dc4dc (diff) | |
download | portage-2339fbb2fc4f54161787afebb768d60afc3511ba.tar.gz portage-2339fbb2fc4f54161787afebb768d60afc3511ba.tar.bz2 portage-2339fbb2fc4f54161787afebb768d60afc3511ba.zip |
Implement REPLACING_VERSIONS and REPLACED_BY_VERSION
Diffstat (limited to 'pym/portage/versions.py')
-rw-r--r-- | pym/portage/versions.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |