def _ReadSupportedOS(self, yaml_definition, definition_object, name):
    supported_os = yaml_definition.get(u'supported_os', [])

    if not isinstance(supported_os, list):
      raise errors.FormatError(
          u'supported_os must be a list of strings, got: {0}'.format(
              supported_os))

    undefined_supported_os = [
        item for item in supported_os if item not in definitions.SUPPORTED_OS]

    if undefined_supported_os:
      raise errors.FormatError((
          u'Artifact definition: {0} supported operating system: {1} '
          u'not defined.').format(name, u', '.join(undefined_supported_os)))

    definition_object.supported_os = supported_os
Adds files which match pattern from version versionStr of component.
dataset/ETHPy150Open ForensicArtifacts/artifacts/artifacts/reader.py/YamlArtifactsReader._ReadSupportedOS--crossover with--dataset/ETHPy150Open sassoftware/conary/conary/build/filesetrecipe.py/_FilesetRecipe._addFile