From: Sebastian Luther Date: Tue, 25 May 2010 11:19:05 +0000 (+0200) Subject: _emerge.Package.iuse.is_valid_flags should return a list of flags missing from IUSE X-Git-Tag: v2.2_rc68~576 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae975aac54bdb26331c5539a85987ca7f5c0f0e8;p=portage.git _emerge.Package.iuse.is_valid_flags should return a list of flags missing from IUSE --- diff --git a/pym/_emerge/Package.py b/pym/_emerge/Package.py index 93b86f10b..0eba4b65a 100644 --- a/pym/_emerge/Package.py +++ b/pym/_emerge/Package.py @@ -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)