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
+
+ def get_missing_iuse(self, flags):
+ """
+ @returns: A list of flags missing from IUSE.
+ """
+ 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:
missing_iuse_reasons = []
for pkg in missing_use:
use = pkg.use.enabled
- missing_iuse = pkg.iuse.is_valid_flag(atom.use.required)
+ missing_iuse = pkg.iuse.get_missing_iuse(atom.use.required)
mreasons = []
if missing_iuse:
mreasons.append("Missing IUSE: %s" % " ".join(missing_iuse))
found_available_arg = True
if atom.use:
- missing_iuse = pkg.iuse.is_valid_flag(atom.use.required)
+ missing_iuse = pkg.iuse.get_missing_iuse(atom.use.required)
if missing_iuse:
# Don't add this to packages_with_invalid_use_config
# since IUSE cannot be adjusted by the user.