From: Zac Medico Date: Wed, 18 May 2011 01:31:15 +0000 (-0700) Subject: depgraph._resolve: use temp set for autounmask X-Git-Tag: v2.1.9.50~82 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f0a842be08044052e715461470c57077263e0443;p=portage.git depgraph._resolve: use temp set for autounmask --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index b5c3ab8da..e3b8710d7 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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)