Fix --resume to support --exclude.
authorZac Medico <zmedico@gentoo.org>
Sat, 15 May 2010 21:00:47 +0000 (14:00 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 15 May 2010 21:00:47 +0000 (14:00 -0700)
pym/_emerge/depgraph.py

index bbe1a98c905c4fd838cf1f2053436f321092a42e..9687ef527e656bc0758429142f3c83752ddcb511 100644 (file)
@@ -5133,6 +5133,10 @@ class depgraph(object):
                                        continue
                                raise
 
+                       if "merge" == pkg.operation and \
+                               self._frozen_config.excluded_pkgs.findAtomForPackage(pkg):
+                               continue
+
                        if "merge" == pkg.operation and not pkg.visible:
                                if skip_masked:
                                        masked_tasks.append(Dependency(root=pkg.root, parent=pkg))