mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Correct installer descriptions on download archive
This commit is contained in:
parent
41c7b7f150
commit
2a1dacae67
@ -364,11 +364,14 @@ def generate_index(): # {{{
|
|||||||
x for x in files if x.endswith('.txz') or x.endswith('tar.bz2')
|
x for x in files if x.endswith('.txz') or x.endswith('tar.bz2')
|
||||||
]
|
]
|
||||||
if linux:
|
if linux:
|
||||||
|
if 'i686' in x:
|
||||||
|
itype = 'Linux Intel 32-bit binary'
|
||||||
|
elif 'arm64' in x:
|
||||||
|
itype = 'Linux ARM 64-bit binary'
|
||||||
|
else:
|
||||||
|
itype = 'Linux Intel 64-bit binary'
|
||||||
linux = [
|
linux = [
|
||||||
'<li><a href="{0}" title="{1}">{1}</a></li>'.format(
|
'<li><a href="{0}" title="{1}">{1}</a></li>'.format(x, itype) for x in linux
|
||||||
x, 'Linux 64-bit binary'
|
|
||||||
if 'x86_64' in x else 'Linux ARM 64-bit binary'
|
|
||||||
) for x in linux
|
|
||||||
]
|
]
|
||||||
body.append(
|
body.append(
|
||||||
'<dt>Linux</dt><dd><ul>{}</ul></dd>'.format(
|
'<dt>Linux</dt><dd><ul>{}</ul></dd>'.format(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user