From: Sebastian Luther Date: Tue, 25 May 2010 11:03:01 +0000 (+0200) Subject: Simplify code by passing a list of flags to Package.iuse.is_valid_flag X-Git-Tag: v2.2_rc68~577 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e4e4b64a11507647937cef070ee1e6ff263e992;p=portage.git Simplify code by passing a list of flags to Package.iuse.is_valid_flag --- 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.