Compare commits
No commits in common. "23b3fce7cb77645d8eb9d0af1ede2f314adc11a1" and "64f4c092307311b9e5a4b32e7f3881b7294a5c15" have entirely different histories.
23b3fce7cb
...
64f4c09230
1 changed files with 9 additions and 50 deletions
59
incus.py
59
incus.py
|
@ -14,60 +14,19 @@ META = f"{ROOT}/meta"
|
||||||
|
|
||||||
STREAMS = f"{META}/simplestreams/v1"
|
STREAMS = f"{META}/simplestreams/v1"
|
||||||
|
|
||||||
TYPE = (
|
WANTED = {
|
||||||
"default",
|
"architectures": [
|
||||||
)
|
"amd64",
|
||||||
TYPES = (
|
"arm64",
|
||||||
"default",
|
],
|
||||||
"cloud",
|
"images": {
|
||||||
)
|
"debian",
|
||||||
ARCHITECTURES_TYPE = {
|
"arm64",
|
||||||
"amd64": TYPE,
|
|
||||||
"arm64": TYPE,
|
|
||||||
}
|
|
||||||
ARCHITECTURES_TYPES = {
|
|
||||||
"amd64": TYPES,
|
|
||||||
"arm64": TYPES,
|
|
||||||
}
|
|
||||||
EL = {
|
|
||||||
"9": ARCHITECTURES_TYPES,
|
|
||||||
"8": ARCHITECTURES_TYPES,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def architectures_type(*versions: str) -> dict:
|
|
||||||
return {version: ARCHITECTURES_TYPE for version in versions}
|
|
||||||
|
|
||||||
|
|
||||||
def architectures_types(*versions: str) -> dict:
|
|
||||||
return {version: ARCHITECTURES_TYPES for version in versions}
|
|
||||||
|
|
||||||
|
|
||||||
PROFILE = {
|
|
||||||
"nixos": architectures_type("24.11"),
|
|
||||||
# apk
|
|
||||||
"alpine": architectures_types("3.21", "3.20"),
|
|
||||||
# deb
|
|
||||||
"debian": architectures_types("bookworm", "bullseye"),
|
|
||||||
"ubuntu": architectures_types("noble", "jammy"),
|
|
||||||
# rpm
|
|
||||||
"almalinux": EL,
|
|
||||||
"fedora": architectures_types("42", "41"),
|
|
||||||
"opensuse": {
|
|
||||||
"15.6": ARCHITECTURES_TYPES,
|
|
||||||
"15.5": ARCHITECTURES_TYPE,
|
|
||||||
},
|
|
||||||
"rockylinux": EL,
|
|
||||||
# rolling
|
|
||||||
"archlinux": {
|
|
||||||
"current": {
|
|
||||||
"amd64": TYPES,
|
|
||||||
"arm64": TYPE,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
root = Path(__file__).resolve().parent / "root"
|
root = Path(__file__).resolve().parent / "root"
|
||||||
# root path
|
# root path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue