_iter_similar_available: do built checks together
authorZac Medico <zmedico@gentoo.org>
Tue, 19 Mar 2013 21:38:33 +0000 (14:38 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 19 Mar 2013 21:38:33 +0000 (14:38 -0700)
pym/_emerge/depgraph.py

index 308c583156195bb18cf2c1b2bf089004edef89cc..dceae52f7ad5acf462bf40d26ea5cdb8e8a2b5f5 100644 (file)
@@ -1475,9 +1475,9 @@ class depgraph(object):
                        if self._frozen_config.excluded_pkgs.findAtomForPackage(pkg,
                                modified_use=self._pkg_use_enabled(pkg)):
                                continue
-                       if pkg.built and self._equiv_binary_installed(pkg):
-                               continue
                        if pkg.built:
+                               if self._equiv_binary_installed(pkg):
+                                       continue
                                if not (not use_ebuild_visibility and
                                        (usepkgonly or useoldpkg_atoms.findAtomForPackage(
                                        pkg, modified_use=self._pkg_use_enabled(pkg)))) and \