mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
update: only gen index.png when making index.html
* https://f-droid.org/repo does not use the index.png at all * Some repos want to set their own index.png rather than the QR code
This commit is contained in:
parent
11aee5b325
commit
ad9b0c3294
1 changed files with 1 additions and 2 deletions
|
@ -155,12 +155,11 @@ def make_website(apps, repodir, repodict):
|
|||
if not os.path.exists(repodir):
|
||||
os.makedirs(repodir)
|
||||
|
||||
qrcode.make(link_fingerprinted).save(os.path.join(repodir, "index.png"))
|
||||
|
||||
html_name = 'index.html'
|
||||
html_file = os.path.join(repodir, html_name)
|
||||
|
||||
if _should_file_be_generated(html_file, autogenerate_comment):
|
||||
qrcode.make(link_fingerprinted).save(os.path.join(repodir, "index.png"))
|
||||
with open(html_file, 'w') as f:
|
||||
name = repodict["name"]
|
||||
description = repodict["description"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue