Fix want_restart_for_use_change() to flatten deps before comparing tokens as sets.
authorSebastian Luther <SebastianLuther@gmx.de>
Sun, 5 Sep 2010 18:01:44 +0000 (11:01 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 5 Sep 2010 18:01:44 +0000 (11:01 -0700)
pym/_emerge/depgraph.py

index 3cbd182ca3a7681ed6cd65e69e424d700c5a2650..3230d9a735773c9a81dbc7f8f2ac5dc2db7272af 100644 (file)
@@ -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