From 8e4e4b64a11507647937cef070ee1e6ff263e992 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Tue, 25 May 2010 13:03:01 +0200 Subject: [PATCH] Simplify code by passing a list of flags to Package.iuse.is_valid_flag --- pym/_emerge/depgraph.py | 6 +----- 1 file changed, 1 insertion(+), 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. -- 2.26.2