Use is_valid_flag.
authorZac Medico <zmedico@gentoo.org>
Wed, 28 Apr 2010 04:10:16 +0000 (21:10 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 Apr 2010 04:10:16 +0000 (21:10 -0700)
pym/_emerge/depgraph.py

index 8349bb55eb6a9213a1f38ba02be301454e71f12a..c3e180faf75520f2fb4214bc96a3ad310151547c 100644 (file)
@@ -2538,8 +2538,7 @@ class depgraph(object):
                                        if atom.use:
                                                missing_iuse = False
                                                for x in atom.use.required:
-                                                       if x not in pkg.iuse.all and \
-                                                               pkg.root_config.settings._iuse_implicit_re.match(x) is None:
+                                                       if not pkg.iuse.is_valid_flag(x):
                                                                missing_iuse = True
                                                                break
                                                if missing_iuse: