code: def _get_repo_info(alias, repos_cfg=None, root=None):
      '''
      Get one repo meta-data.
      '''
      try:
          meta = dict((repos_cfg or _get_configured_repos(root=root)).items(alias))
          meta['alias'] = alias
          for key, val in six.iteritems(meta):
              if val in ['0', '1']:
                  meta[key] = int(meta[key]) == 1
              elif val == 'NONE':
                  meta[key] = None
          return meta
      except (ValueError, configparser.NoSectionError):
          return {f _get_repo_info(alias, repos_cfg=None, root=None):
      '''
      Get one repo meta-data.
      '''
      try:
          meta = dict((repos_cfg or _get_configured_repos(root=root)).items(alias))
          meta['alias'] = alias
          for key, val in six.iteritems(meta):
              if val in ['0', '1']:
                  meta[key] = int(meta[key]) == 1
              elif val == 'NONE':
                  meta[key] = None
          return meta
      except (ValueError, configparser.NoSectionError):
          return {}
docs: Get one repo meta-data.