From: Sebastian Luther Date: Sun, 5 Sep 2010 18:01:44 +0000 (-0700) Subject: Fix want_restart_for_use_change() to flatten deps before comparing tokens as sets. X-Git-Tag: v2.2_rc76~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af6f7419e31d0338bfb230d91566d7d0a487036d;p=portage.git Fix want_restart_for_use_change() to flatten deps before comparing tokens as sets. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 3cbd182ca..3230d9a73 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2517,8 +2517,8 @@ class depgraph(object): for key in "DEPEND", "RDEPEND", "PDEPEND", "LICENSE": dep = pkg.metadata[key] - old_val = set(portage.dep.use_reduce(dep, pkg.use.enabled, is_valid_flag=pkg.iuse.is_valid_flag)) - new_val = set(portage.dep.use_reduce(dep, new_use, is_valid_flag=pkg.iuse.is_valid_flag)) + old_val = set(portage.dep.use_reduce(dep, pkg.use.enabled, is_valid_flag=pkg.iuse.is_valid_flag, flat=True)) + new_val = set(portage.dep.use_reduce(dep, new_use, is_valid_flag=pkg.iuse.is_valid_flag, flat=True)) if old_val != new_val: return True