summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-05-25 13:03:01 +0200
committerZac Medico <zmedico@gentoo.org>2010-05-25 04:43:46 -0700
commit8e4e4b64a11507647937cef070ee1e6ff263e992 (patch)
tree7a26ee37286e7915a1c15f4629e393a2a3716501
parent124f4789fb81c5671848df4b789bb44e812c8591 (diff)
downloadportage-8e4e4b64a11507647937cef070ee1e6ff263e992.tar.gz
portage-8e4e4b64a11507647937cef070ee1e6ff263e992.tar.bz2
portage-8e4e4b64a11507647937cef070ee1e6ff263e992.zip
Simplify code by passing a list of flags to Package.iuse.is_valid_flag
-rw-r--r--pym/_emerge/depgraph.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index a03f04aed..d4f70d03b 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -2621,11 +2621,7 @@ class depgraph(object):
found_available_arg = True
if atom.use:
- missing_iuse = False
- for x in atom.use.required:
- if not pkg.iuse.is_valid_flag(x):
- missing_iuse = True
- break
+ missing_iuse = pkg.iuse.is_valid_flag(atom.use.required)
if missing_iuse:
# Don't add this to packages_with_invalid_use_config
# since IUSE cannot be adjusted by the user.