Validate resume list data some more.
authorZac Medico <zmedico@gentoo.org>
Fri, 2 May 2008 18:27:16 +0000 (18:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 May 2008 18:27:16 +0000 (18:27 -0000)
svn path=/main/trunk/; revision=10094

pym/_emerge/__init__.py

index e8f59ed36fa788e05f3a743cea2814055a08ce49..faa0a83e89cbf890e36527945df0654ffc8d93a1 100644 (file)
@@ -4763,7 +4763,7 @@ class depgraph(object):
                trees = self.trees
                serialized_tasks = []
                for x in mergelist:
-                       if len(x) != 4:
+                       if not (isinstance(x, list) and len(x) == 4):
                                continue
                        pkg_type, myroot, pkg_key, action = x
                        if pkg_type not in self.pkg_tree_map: