summaryrefslogtreecommitdiffstats
path: root/pym/portage_dep.py
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-01-10 09:07:57 +0000
committerMarius Mauch <genone@gentoo.org>2007-01-10 09:07:57 +0000
commitc4f8e99de03fe0aae14453f2616397eaac671318 (patch)
treed3a99745d885d9cdc13cc3f7f56166aed4fc1d79 /pym/portage_dep.py
parentf97493fccfa149106683cccaa21965502bb59903 (diff)
downloadportage-c4f8e99de03fe0aae14453f2616397eaac671318.tar.gz
portage-c4f8e99de03fe0aae14453f2616397eaac671318.tar.bz2
portage-c4f8e99de03fe0aae14453f2616397eaac671318.zip
Documenting the loop a bit
svn path=/main/trunk/; revision=5515
Diffstat (limited to 'pym/portage_dep.py')
-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):