_emerge.Package.iuse.is_valid_flags should return a list of flags missing from IUSE
authorSebastian Luther <SebastianLuther@gmx.de>
Tue, 25 May 2010 11:19:05 +0000 (13:19 +0200)
committerZac Medico <zmedico@gentoo.org>
Tue, 25 May 2010 11:43:46 +0000 (04:43 -0700)
pym/_emerge/Package.py

index 93b86f10b6b6253c4278765f9f6b4518cd59991b..0eba4b65a1b9506e4bfe4eab6a6855ef9dcab873 100644 (file)
@@ -214,11 +214,12 @@ class Package(Task):
                        """
                        if isinstance(flags, basestring):
                                flags = [flags]
+                       missing_iuse = []
                        for flag in flags:
                                if not flag in self.all and \
                                        self._iuse_implicit_regex.match(flag) is None:
-                                       return False
-                       return True
+                                       missing_iuse.append(flag)
+                       return missing_iuse
 
        def _get_hash_key(self):
                hash_key = getattr(self, "_hash_key", None)