From c4f8e99de03fe0aae14453f2616397eaac671318 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Wed, 10 Jan 2007 09:07:57 +0000 Subject: [PATCH] Documenting the loop a bit svn path=/main/trunk/; revision=5515 --- pym/portage_dep.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- 2.26.2