projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8989f
)
Fix dep_getcpv() so that it always properly removes the slot regardless of which...
author
Zac Medico
<zmedico@gentoo.org>
Tue, 29 May 2007 12:41:08 +0000
(12:41 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 29 May 2007 12:41:08 +0000
(12:41 -0000)
svn path=/main/trunk/; revision=6661
pym/portage/dep.py
patch
|
blob
|
history
diff --git
a/pym/portage/dep.py
b/pym/portage/dep.py
index 0bc90cc31a51cf3505b74e121197a657e4b05355..134e53bde79b27757c60909f823a9377dee4cfe2 100644
(file)
--- a/
pym/portage/dep.py
+++ b/
pym/portage/dep.py
@@
-359,6
+359,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] == "*":
@@
-369,9
+371,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