releases: Promote aarch64 and demote armv6l
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Aug 2021 18:22:23 +0000 (18:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Aug 2021 18:22:23 +0000 (18:22 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/releases.py

index a0a8cf93154adf8dc7446a14d0081d4485bdab2f..5786dde19c2c6fec1ec6ea7364d8fed282432804 100644 (file)
@@ -234,8 +234,12 @@ class Release(Object):
                                arches.append(arch)
                                break
 
                                arches.append(arch)
                                break
 
-               # Add ARM if available
-               if "arm" in self.arches:
+               # Add aarch64 if available
+               if "aarch64" in self.arches:
+                       arches.append("aarch64")
+
+               # Add ARM before 2.27 if available
+               if "arm" in self.arches and self.sname < "ipfire-2.27-core159":
                        arches.append("arm")
 
                return arches
                        arches.append("arm")
 
                return arches
@@ -254,7 +258,7 @@ class Release(Object):
 
        @property
        def experimental_arches(self):
 
        @property
        def experimental_arches(self):
-               return ("aarch64",)
+               return []
 
        @property
        def files(self):
 
        @property
        def files(self):