Commit 2de0af53 authored by shadMod's avatar shadMod 💬

mv ARM64 and PPC64EL in 'add_archs' key in costants.json

parent d0dd48b2
......@@ -17,7 +17,11 @@
},
"live-server": {
"name": "Ubuntu Server",
"description": "Tutta la potenza di Ubuntu nel tuo server"
"description": "Tutta la potenza di Ubuntu nel tuo server",
"add_archs": [
"arm64",
"ppc64el"
]
},
"kubuntu": {
"name": "Kubuntu",
......
......@@ -80,8 +80,6 @@ class UbuntuRelease:
class CompileVersion:
"""
:param ARM64: set distro with arm64 architecture
:param PPC64EL: set distro with ppc64el architecture
:param SUPPORT_5: set distro with 5 years support (else are 3 years)
:param INVERT_RELEASES: set if you want invert releases in template render
......@@ -91,8 +89,6 @@ class CompileVersion:
:param ignore_version: list of tags versions to be ignored
"""
ARM64 = ["live-server"]
PPC64EL = ["live-server"]
SUPPORT_5 = ["desktop", "live-server"]
INVERT_RELEASES = ["live-server"]
......@@ -176,11 +172,13 @@ class CompileVersion:
releases = {
"amd64": self.populate_archs_releases(key, "amd64")
}
if key in self.ARM64:
releases["arm64"] = self.populate_archs_releases(key, "arm64")
if key in self.PPC64EL:
releases["ppc64el"] = self.populate_archs_releases(key, "ppc64el")
data["distros"][key]["archs"] = releases
# check and adding any other archs
add_archs = distro.get("add_archs")
if add_archs:
for _arch in add_archs:
releases[_arch] = self.populate_archs_releases(key, _arch)
# put all releases in archs key
distro["archs"] = releases
# write sources
data["sources"] = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment