Insice match_from_list(), use remove_slot() instead of dep_getcpv() where
authorZac Medico <zmedico@gentoo.org>
Mon, 14 Sep 2009 07:59:47 +0000 (07:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 Sep 2009 07:59:47 +0000 (07:59 -0000)
appropriate.

svn path=/main/trunk/; revision=14261

pym/portage/dep.py

index 12e26ab87d4fd1cf4b932e5d3ab56cea8ee9bc66..782405f49e7b85db919707d6fada008fa17c11bf 100644 (file)
@@ -1123,7 +1123,7 @@ def match_from_list(mydep, candidate_list):
                for x in candidate_list:
                        xcpv = getattr(x, "cpv", None)
                        if xcpv is None:
-                               xcpv = dep_getcpv(x)
+                               xcpv = remove_slot(x)
                        if not cpvequal(xcpv, mycpv):
                                continue
                        mylist.append(x)