From: Zac Medico Date: Wed, 18 Aug 2010 20:45:19 +0000 (-0700) Subject: Fix deprecation warnings from paren_reduce. X-Git-Tag: v2.2_rc68~89 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f08c242f0c6d1009beddd6d383ef283a1ba7be1;p=portage.git Fix deprecation warnings from paren_reduce. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 907c6f634..dc4c70742 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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