repo_config: switch to .yaml

This commit is contained in:
InsanePrawn 2023-03-27 09:23:02 +02:00
parent d77adf9b21
commit 4517201118
2 changed files with 2 additions and 2 deletions

View file

@ -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',

View file

@ -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)