mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Merge branch 'stop-overwriting-index-png' into 'master'
update: only gen index.png when making index.html See merge request fdroid/fdroidserver!1575
This commit is contained in:
commit
30e308ac8a
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):
|
if not os.path.exists(repodir):
|
||||||
os.makedirs(repodir)
|
os.makedirs(repodir)
|
||||||
|
|
||||||
qrcode.make(link_fingerprinted).save(os.path.join(repodir, "index.png"))
|
|
||||||
|
|
||||||
html_name = 'index.html'
|
html_name = 'index.html'
|
||||||
html_file = os.path.join(repodir, html_name)
|
html_file = os.path.join(repodir, html_name)
|
||||||
|
|
||||||
if _should_file_be_generated(html_file, autogenerate_comment):
|
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:
|
with open(html_file, 'w') as f:
|
||||||
name = repodict["name"]
|
name = repodict["name"]
|
||||||
description = repodict["description"]
|
description = repodict["description"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue