]> git.ipfire.org Git - ipfire.org.git/blobdiff - webapp/ui_modules.py
webapp: Prepare for x86_64
[ipfire.org.git] / webapp / ui_modules.py
index 514688fa3e1a513a686b18fe46f8a8881615b523..d70d1324cfba96ec65437d0cb631a7235e994032 100644 (file)
@@ -264,10 +264,10 @@ class SidebarReleaseModule(UIModule):
 
 class ReleaseItemModule(UIModule):
        def render(self, release, latest=False):
-               arches = ("i586", "arm")
+               arches = ("x86_64", "i586", "arm")
 
                downloads = []
-               for arch in ("i586", "arm"):
+               for arch in arches:
                        files = []
 
                        for file in release.files:
@@ -296,7 +296,8 @@ class DownloadButtonModule(UIModule):
                best_image = None
 
                for file in release.files:
-                       if file.type == "iso":
+                       if (release.sname < "ipfire-2.19-core100" or file.arch == "x86_64") \
+                                       and file.type == "iso":
                                best_image = file
                                break