mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 21:25:43 -05:00
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']
|
||||
|
||||
REPOS_CONFIG_FILE = "repos.toml"
|
||||
REPOS_CONFIG_FILE = "repos.yaml"
|
||||
|
||||
REPOSITORIES = [
|
||||
'boot',
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue