docs: def info2dicts(info, in_place=False):
      """
      Return info with:
  
      1) `packages` list replaced by a 'packages' dict indexed by 'project'
      2) `releases` list replaced by a 'releases' dict indexed by 'name'
      """
      if 'packages' not in info and 'releases' not in info:
          return info
      if in_place:
          info_dicts = info
      else:
          info_dicts = info.copy()
      packages = info.get('packages')
      if packages:
          info_dicts['packages'] = list2dict(packages, 'project')
      releases = info.get('releases')
      if releases:
          info_dicts['releases'] = list2dict(releases, 'name')
      return info_dicts