depgraph._resolve: use temp set for autounmask
authorZac Medico <zmedico@gentoo.org>
Wed, 18 May 2011 01:31:15 +0000 (18:31 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 26 May 2011 03:11:14 +0000 (20:11 -0700)
pym/_emerge/depgraph.py

index b5c3ab8da665c1f7a7651b815933d61dc21fa267..e3b8710d7f36ccd88a6bca8aac996f9739aae8fe 100644 (file)
@@ -2044,15 +2044,19 @@ class depgraph(object):
                except self._unknown_internal_error:
                        return False, myfavorites
 
-               if set(self._dynamic_config.digraph).intersection( \
+               digraph_set = frozenset(self._dynamic_config.digraph)
+
+               if digraph_set.intersection(
                        self._dynamic_config._needed_unstable_keywords) or \
-                       set(self._dynamic_config.digraph).intersection( \
+                       digraph_set.intersection(
                        self._dynamic_config._needed_use_config_changes) or \
-                       set(self._dynamic_config.digraph).intersection( \
+                       digraph_set.intersection(
                        self._dynamic_config._needed_license_changes) :
                        #We failed if the user needs to change the configuration
                        return False, myfavorites
 
+               digraph_set = None
+
                # We're true here unless we are missing binaries.
                return (True, myfavorites)