diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-09-05 11:01:44 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-05 11:01:44 -0700 |
commit | af6f7419e31d0338bfb230d91566d7d0a487036d (patch) | |
tree | 6012c160541fb139e16962c41270f592da44b603 | |
parent | 3baed89ca3e17d59f8e4b8a8453c88f26d0099d3 (diff) | |
download | portage-af6f7419e31d0338bfb230d91566d7d0a487036d.tar.gz portage-af6f7419e31d0338bfb230d91566d7d0a487036d.tar.bz2 portage-af6f7419e31d0338bfb230d91566d7d0a487036d.zip |
Fix want_restart_for_use_change() to flatten deps before comparing tokens as sets.
-rw-r--r-- | pym/_emerge/depgraph.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |