WIP: keyring init done(?)
This commit is contained in:
parent
e068b3587e
commit
38edce080f
3 changed files with 197 additions and 2 deletions
|
@ -9,7 +9,7 @@ from copy import deepcopy
|
|||
from typing import ClassVar, Optional, Mapping, Union
|
||||
|
||||
from config.state import config
|
||||
from constants import Arch, BASE_DISTROS, KUPFER_HTTPS, KEYRINGS_KEY, REPOS_CONFIG_FILE, REPOSITORIES
|
||||
from constants import Arch, BASE_DISTROS, KUPFER_HTTPS, KEYRINGS_KEY, KEYRINGS_LOCAL_KEY, KEYRINGS_LOCAL_NAME, KEYRING_REMOTE_NAME, REPOS_CONFIG_FILE, REPOSITORIES
|
||||
from dictscheme import DictScheme, toml_inline_dicts, TomlPreserveInlineDictEncoder
|
||||
from utils import sha256sum
|
||||
|
||||
|
@ -46,6 +46,7 @@ class BaseDistro(DictScheme):
|
|||
class ReposConfigFile(DictScheme):
|
||||
remote_url: Optional[str]
|
||||
keyrings: Optional[list[str]]
|
||||
local_keyring: Optional[str]
|
||||
repos: dict[str, RepoConfig]
|
||||
base_distros: dict[Arch, BaseDistro]
|
||||
_path: Optional[str]
|
||||
|
@ -108,7 +109,8 @@ REPOS_CONFIG_DEFAULT = ReposConfigFile({
|
|||
'_path': '__DEFAULTS__',
|
||||
'_checksum': None,
|
||||
REMOTEURL_KEY: KUPFER_HTTPS,
|
||||
KEYRINGS_KEY: [],
|
||||
KEYRINGS_KEY: [KEYRING_REMOTE_NAME],
|
||||
KEYRINGS_LOCAL_KEY: KEYRINGS_LOCAL_NAME,
|
||||
REPOS_KEY: {
|
||||
'kupfer_local': REPO_DEFAULTS | {
|
||||
LOCALONLY_KEY: True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue