From: Marius Mauch Date: Wed, 10 Jan 2007 09:07:57 +0000 (-0000) Subject: Documenting the loop a bit X-Git-Tag: v2.1.2~116 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c4f8e99de03fe0aae14453f2616397eaac671318;p=portage.git Documenting the loop a bit svn path=/main/trunk/; revision=5515 --- 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):