diff options
author | 2010-05-25 13:03:01 +0200 | |
---|---|---|
committer | 2010-05-25 04:43:46 -0700 | |
commit | 8e4e4b64a11507647937cef070ee1e6ff263e992 (patch) | |
tree | 7a26ee37286e7915a1c15f4629e393a2a3716501 | |
parent | Allow _emerge.Package.iuse.is_valid_flag() to take a list of flags (diff) | |
download | portage-idfetch-8e4e4b64a11507647937cef070ee1e6ff263e992.tar.gz portage-idfetch-8e4e4b64a11507647937cef070ee1e6ff263e992.tar.bz2 portage-idfetch-8e4e4b64a11507647937cef070ee1e6ff263e992.zip |
Simplify code by passing a list of flags to Package.iuse.is_valid_flag
-rw-r--r-- | pym/_emerge/depgraph.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index a03f04ae..d4f70d03 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. |