2026-07-14 12:05:08 +02:00
|
|
|
"""Read-only access to the image catalog (distributions.yml in the package)."""
|
2026-07-14 11:27:49 +02:00
|
|
|
|
|
|
|
|
from functools import cache
|
|
|
|
|
|
|
|
|
|
import yaml
|
|
|
|
|
|
|
|
|
|
from lim import config
|
|
|
|
|
|
2026-07-14 12:05:08 +02:00
|
|
|
CATALOG_PATH = config.CATALOG_PATH
|
2026-07-14 11:27:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@cache
|
|
|
|
|
def _load() -> dict:
|
|
|
|
|
with CATALOG_PATH.open() as handle:
|
|
|
|
|
return yaml.safe_load(handle)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def arch_rpi_images() -> dict[str, dict[str, str]]:
|
|
|
|
|
return _load()["arch_rpi_images"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def manjaro_gnome_releases() -> dict[str, dict[str, str]]:
|
|
|
|
|
return _load()["manjaro_gnome_releases"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def retropie_images() -> dict[str, dict[str, str]]:
|
|
|
|
|
return _load()["retropie_images"]
|
|
|
|
|
|
|
|
|
|
|
2026-07-23 01:57:28 +02:00
|
|
|
def raspios_images() -> dict[str, dict[str, str]]:
|
|
|
|
|
return _load()["raspios_images"]
|
|
|
|
|
|
|
|
|
|
|
2026-07-14 11:27:49 +02:00
|
|
|
def mkinitcpio_modules_by_rpi() -> dict[str, str]:
|
|
|
|
|
return _load()["mkinitcpio_modules_by_rpi"]
|