easyidp.data.downloader._select_mirror

easyidp.data.downloader._select_mirror(mirrors, mirror)

Select a mirror key.

Parameters:
  • mirrors (Mapping) – Available mirrors dict from the manifest.

  • mirror (str) – Requested mirror name or "auto".

Returns:

Selected mirror key.

Return type:

str

Raises:

ValueError – If mirror is "auto" and no mirrors exist, or if the named mirror is not found.