repo_config: switch to .yaml
This commit is contained in:
parent
d77adf9b21
commit
4517201118
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ BASE_PACKAGES: list[str] = BASE_LOCAL_PACKAGES + [
|
||||||
|
|
||||||
POST_CMDS = ['kupfer-config apply']
|
POST_CMDS = ['kupfer-config apply']
|
||||||
|
|
||||||
REPOS_CONFIG_FILE = "repos.toml"
|
REPOS_CONFIG_FILE = "repos.yaml"
|
||||||
|
|
||||||
REPOSITORIES = [
|
REPOSITORIES = [
|
||||||
'boot',
|
'boot',
|
||||||
|
|
|
@ -82,7 +82,7 @@ class ReposConfigFile(DataClass):
|
||||||
def parse_config(path: str) -> ReposConfigFile:
|
def parse_config(path: str) -> ReposConfigFile:
|
||||||
try:
|
try:
|
||||||
with open(path, 'r') as fd:
|
with open(path, 'r') as fd:
|
||||||
data = toml.load(fd)
|
data = yaml.safe_load(fd)
|
||||||
data['_path'] = path
|
data['_path'] = path
|
||||||
data['_checksum'] = sha256sum(path)
|
data['_checksum'] = sha256sum(path)
|
||||||
return ReposConfigFile(data, validate=True)
|
return ReposConfigFile(data, validate=True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue