Improve logic from the previous commit.
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Mar 2008 21:35:45 +0000 (21:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Mar 2008 21:35:45 +0000 (21:35 -0000)
svn path=/main/trunk/; revision=9496

pym/_emerge/__init__.py

index 356acef602575c7b8e4b370ae630a4b8f504d830..e6dedb9607ab01dc988acce67b4efcf4492e3f1d 100644 (file)
@@ -2714,7 +2714,7 @@ class depgraph(object):
                                                        (myarg and not selective)
                                                if not reinstall_for_flags and \
                                                        not must_reinstall and \
-                                                       (vardb.cpv_exists(cpv) and vardb.match(atom)):
+                                                       cpv in vardb.match(atom):
                                                        break
                                        if installed:
                                                must_reinstall = empty or \