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

bin/emerge

index 7c643d2b0d4e383de499183a5b9a906da1c02888..eb829e4fb5da315cf1e8dbb05d2ddfddeeef1fca 100755 (executable)
@@ -3812,9 +3812,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