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 @@ ...@@ -17,7 +17,11 @@
}, },
"live-server": { "live-server": {
"name": "Ubuntu 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": { "kubuntu": {
"name": "Kubuntu", "name": "Kubuntu",
......
...@@ -80,8 +80,6 @@ class UbuntuRelease: ...@@ -80,8 +80,6 @@ class UbuntuRelease:
class CompileVersion: 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 SUPPORT_5: set distro with 5 years support (else are 3 years)
:param INVERT_RELEASES: set if you want invert releases in template render :param INVERT_RELEASES: set if you want invert releases in template render
...@@ -91,8 +89,6 @@ class CompileVersion: ...@@ -91,8 +89,6 @@ class CompileVersion:
:param ignore_version: list of tags versions to be ignored :param ignore_version: list of tags versions to be ignored
""" """
ARM64 = ["live-server"]
PPC64EL = ["live-server"]
SUPPORT_5 = ["desktop", "live-server"] SUPPORT_5 = ["desktop", "live-server"]
INVERT_RELEASES = ["live-server"] INVERT_RELEASES = ["live-server"]
...@@ -176,11 +172,13 @@ class CompileVersion: ...@@ -176,11 +172,13 @@ class CompileVersion:
releases = { releases = {
"amd64": self.populate_archs_releases(key, "amd64") "amd64": self.populate_archs_releases(key, "amd64")
} }
if key in self.ARM64: # check and adding any other archs
releases["arm64"] = self.populate_archs_releases(key, "arm64") add_archs = distro.get("add_archs")
if key in self.PPC64EL: if add_archs:
releases["ppc64el"] = self.populate_archs_releases(key, "ppc64el") for _arch in add_archs:
data["distros"][key]["archs"] = releases releases[_arch] = self.populate_archs_releases(key, _arch)
# put all releases in archs key
distro["archs"] = releases
# write sources # write sources
data["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