Fix deprecation warnings from paren_reduce.
authorZac Medico <zmedico@gentoo.org>
Wed, 18 Aug 2010 20:45:19 +0000 (13:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 18 Aug 2010 20:45:19 +0000 (13:45 -0700)
pym/_emerge/depgraph.py

index 907c6f634a412299270a8d9c34772abce81af42f..dc4c707428a2056007e0cc56dd3e9641a76c25ea 100644 (file)
@@ -4186,8 +4186,8 @@ class depgraph(object):
                                                for flag, state in zip(affecting_use, use_state):
                                                        if state == "enabled":
                                                                current_use.append(flag)
-                                               reduced_dep = portage.dep.flatten( \
-                                                       portage.dep.use_reduce(portage.dep.paren_reduce(dep), current_use))
+                                               reduced_dep = portage.dep.use_reduce(dep,
+                                                       uselist=current_use, flat=True)
 
                                                if parent_atom not in reduced_dep:
                                                        #we found a valid solution