_want_update_pkg: respect --exclude
authorZac Medico <zmedico@gentoo.org>
Tue, 30 Jul 2013 05:41:11 +0000 (22:41 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 30 Jul 2013 05:41:11 +0000 (22:41 -0700)
pym/_emerge/depgraph.py

index c1f1ab051ba2c9dfa7990c0892837347bcd060d3..76fda2c0c3c019ea59416b0275b1d65de445cf33 100644 (file)
@@ -4317,6 +4317,11 @@ class depgraph(object):
                return not arg
 
        def _want_update_pkg(self, parent, pkg):
+
+               if self._frozen_config.excluded_pkgs.findAtomForPackage(pkg,
+                       modified_use=self._pkg_use_enabled(pkg)):
+                       return False
+
                arg_atoms = None
                try:
                        arg_atoms = list(self._iter_atoms_for_pkg(pkg))