X-Git-Url: http://git.ipfire.org/?p=people%2Fshoehn%2Fipfire.org.git;a=blobdiff_plain;f=webapp%2Fbackend%2Freleases.py;fp=webapp%2Fbackend%2Freleases.py;h=6c556114187d5a91ff9a0fdb01d8a9331b3c02aa;hp=48f7b5d25c7645a40a54dfb0037e67fb883c8b80;hb=6371bfda57324fd9958b47980a4bc61a630c1bba;hpb=7e9fddd3048e667a38c919fdca8c5b7d55db2208 diff --git a/webapp/backend/releases.py b/webapp/backend/releases.py index 48f7b5d..6c55611 100644 --- a/webapp/backend/releases.py +++ b/webapp/backend/releases.py @@ -168,7 +168,7 @@ class File(Object): @property def arch(self): - known_arches = ("i586", "arm") + known_arches = ("x86_64", "i586", "arm") for arch in known_arches: if arch in self.basename: @@ -366,11 +366,7 @@ class Release(Object): f.close() def supports_arch(self, arch): - # Currently there is nothing else than i586 supported - if arch == "i586": - return True - - return False + return arch in ("x86_64", "i586") def supports_platform(self, platform): # Currently there is nothing else than pcbios supported @@ -386,12 +382,18 @@ class Release(Object): assert self.supports_arch(arch) assert self.supports_platform(platform) + if self.sname >= "ipfire-2.19-core100": + return "http://downloads.ipfire.org/%s/images/%s/vmlinuz" % (self.path, arch) + return "http://downloads.ipfire.org/%s/images/vmlinuz" % self.path def netboot_initrd_url(self, arch, platform): assert self.supports_arch(arch) assert self.supports_platform(platform) + if self.sname >= "ipfire-2.19-core100": + return "http://downloads.ipfire.org/%s/images/%s/instroot" % (self.path, arch) + return "http://downloads.ipfire.org/%s/images/instroot" % self.path def netboot_args(self, arch, platform):