WIP: keyring init
This commit is contained in:
parent
0c56038ed6
commit
e068b3587e
4 changed files with 57 additions and 14 deletions
20
constants.py
20
constants.py
|
@ -1,4 +1,4 @@
|
|||
from typehelpers import TypeAlias
|
||||
from typehelpers import TypeAlias, Union
|
||||
|
||||
FASTBOOT = 'fastboot'
|
||||
FLASH_PARTS = {
|
||||
|
@ -56,6 +56,8 @@ ARCHES = [
|
|||
DistroArch: TypeAlias = Arch
|
||||
TargetArch: TypeAlias = Arch
|
||||
|
||||
KEYRINGS_KEY = 'keyrings'
|
||||
|
||||
ALARM_REPOS = {
|
||||
'core': 'http://mirror.archlinuxarm.org/$arch/$repo',
|
||||
'extra': 'http://mirror.archlinuxarm.org/$arch/$repo',
|
||||
|
@ -64,20 +66,22 @@ ALARM_REPOS = {
|
|||
'aur': 'http://mirror.archlinuxarm.org/$arch/$repo',
|
||||
}
|
||||
|
||||
BASE_DISTROS: dict[DistroArch, dict[str, dict[str, str]]] = {
|
||||
ALARM_DISTRO: dict[str, Union[dict[str, str], list[str]]] = {
|
||||
'repos': ALARM_REPOS,
|
||||
KEYRINGS_KEY: ['archlinuxarm-keyring'],
|
||||
}
|
||||
|
||||
BASE_DISTROS: dict[DistroArch, dict[str, Union[dict[str, str], list[str]]]] = {
|
||||
'x86_64': {
|
||||
'repos': {
|
||||
'core': 'https://geo.mirror.pkgbuild.com/$repo/os/$arch',
|
||||
'extra': 'https://geo.mirror.pkgbuild.com/$repo/os/$arch',
|
||||
'community': 'https://geo.mirror.pkgbuild.com/$repo/os/$arch',
|
||||
},
|
||||
KEYRINGS_KEY: ['archlinux-keyring'],
|
||||
},
|
||||
'aarch64': {
|
||||
'repos': ALARM_REPOS,
|
||||
},
|
||||
'armv7h': {
|
||||
'repos': ALARM_REPOS,
|
||||
},
|
||||
'aarch64': ALARM_DISTRO,
|
||||
'armv7h': ALARM_DISTRO,
|
||||
}
|
||||
|
||||
COMPILE_ARCHES: dict[Arch, str] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue