summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage_dep.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index a528f7026..432a7d44f 100644
--- a/pym/portage_dep.py
+++ b/pym/portage_dep.py
@@ -588,6 +588,9 @@ def match_from_list(mydep, candidate_list):
if xcpv == mycpv:
mylist.append(x)
else:
+ # xcpv may not be a proper cpv, but cpvequal needs it to be
+ # reducing it should always work, in worst case it stops at
+ # the first digit. Might cause a minor peformance hit though.
while not isspecific(xcpv):
xcpv = xcpv[:-1]
if cpvequal(xcpv, mycpv):