From ae975aac54bdb26331c5539a85987ca7f5c0f0e8 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Tue, 25 May 2010 13:19:05 +0200 Subject: [PATCH] _emerge.Package.iuse.is_valid_flags should return a list of flags missing from IUSE --- pym/_emerge/Package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.26.2