emerge --exclude: avoid "world problems" warning
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Apr 2013 19:29:23 +0000 (12:29 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Apr 2013 19:29:23 +0000 (12:29 -0700)
pym/_emerge/depgraph.py

index b6dd5ff6a7a6f12e5db59bf43f5b82ed7b760100..a00c7fb03506d86f9643c850ab808da9514d4abc 100644 (file)
@@ -3056,6 +3056,16 @@ class depgraph(object):
                                                if pprovided_match:
                                                        continue
 
+                                               excluded = False
+                                               for any_match in self._iter_match_pkgs_any(
+                                                       self._frozen_config.roots[myroot], atom):
+                                                       if self._frozen_config.excluded_pkgs.findAtomForPackage(
+                                                               any_match, modified_use=self._pkg_use_enabled(any_match)):
+                                                               excluded = True
+                                                               break
+                                               if excluded:
+                                                       continue
+
                                                if not (isinstance(arg, SetArg) and \
                                                        arg.name in ("selected", "system", "world")):
                                                        self._dynamic_config._unsatisfied_deps_for_display.append(