diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-29 12:41:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-29 12:41:41 +0000 |
commit | 976e6b338c9ce1701615e2faf3812db120c11a81 (patch) | |
tree | 855a0a134ffca85bad3b4911787af1cb42d4fba0 /pym | |
parent | 3cb63fa60227e9b9ebc1a583457b18503f38393f (diff) | |
download | portage-976e6b338c9ce1701615e2faf3812db120c11a81.tar.gz portage-976e6b338c9ce1701615e2faf3812db120c11a81.tar.bz2 portage-976e6b338c9ce1701615e2faf3812db120c11a81.zip |
Fix dep_getcpv() so that it always properly removes the slot regardless of which operator is present. (trunk r6661)
svn path=/main/branches/2.1.2/; revision=6662
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage_dep.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py index 051b8a5ca..de2586605 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -303,6 +303,8 @@ def dep_getcpv(mydep): if retval is not None: return retval mydep_orig = mydep + if mydep: + mydep = remove_slot(mydep) if mydep and mydep[0] == "*": mydep = mydep[1:] if mydep and mydep[-1] == "*": @@ -313,9 +315,6 @@ def dep_getcpv(mydep): mydep = mydep[2:] elif mydep[:1] in "=<>~": mydep = mydep[1:] - colon = mydep.rfind(":") - if colon != -1: - mydep = mydep[:colon] _dep_getcpv_cache[mydep_orig] = mydep return mydep |