Use match_pkgs() to simplify package comparison.
authorZac Medico <zmedico@gentoo.org>
Fri, 2 May 2008 22:11:25 +0000 (22:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 May 2008 22:11:25 +0000 (22:11 -0000)
svn path=/main/trunk/; revision=10110

pym/_emerge/__init__.py

index 5f1c2a611d96895aa91ee93a4bacf80a538b1e52..b3e57f4ff9ee6da2400f23e030b527ff983750ae 100644 (file)
@@ -3665,9 +3665,8 @@ class depgraph(object):
                                                        for atom in root_config.sets[
                                                                "world"].iterAtomsForPackage(task):
                                                                satisfied = False
-                                                               for cpv in graph_db.match(atom):
-                                                                       if cpv == inst_pkg.cpv and \
-                                                                               inst_pkg in graph_db:
+                                                               for pkg in graph_db.match_pkgs(atom):
+                                                                       if pkg == inst_pkg:
                                                                                continue
                                                                        satisfied = True
                                                                        break