Documenting the loop a bit
authorMarius Mauch <genone@gentoo.org>
Wed, 10 Jan 2007 09:07:57 +0000 (09:07 -0000)
committerMarius Mauch <genone@gentoo.org>
Wed, 10 Jan 2007 09:07:57 +0000 (09:07 -0000)
svn path=/main/trunk/; revision=5515

pym/portage_dep.py

index a528f70262cc0e9375b71f68637b790f32087e74..432a7d44f83ae21a9b89befe422acc0bd211fa52 100644 (file)
@@ -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):