From 451720111884b9ec4c23ea937a220b1be0973a8d Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Mon, 27 Mar 2023 09:23:02 +0200 Subject: [PATCH] repo_config: switch to .yaml --- constants.py | 2 +- distro/repo_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/constants.py b/constants.py index 9e829d5..e2c87cc 100644 --- a/constants.py +++ b/constants.py @@ -26,7 +26,7 @@ BASE_PACKAGES: list[str] = BASE_LOCAL_PACKAGES + [ POST_CMDS = ['kupfer-config apply'] -REPOS_CONFIG_FILE = "repos.toml" +REPOS_CONFIG_FILE = "repos.yaml" REPOSITORIES = [ 'boot', diff --git a/distro/repo_config.py b/distro/repo_config.py index 655aca5..366a533 100644 --- a/distro/repo_config.py +++ b/distro/repo_config.py @@ -82,7 +82,7 @@ class ReposConfigFile(DataClass): def parse_config(path: str) -> ReposConfigFile: try: with open(path, 'r') as fd: - data = toml.load(fd) + data = yaml.safe_load(fd) data['_path'] = path data['_checksum'] = sha256sum(path) return ReposConfigFile(data, validate=True)