From ad9b0c32942f94ca6b5fedd02c38c25ce5898694 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 4 Dec 2024 11:55:07 +0100 Subject: [PATCH] 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 --- fdroidserver/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fdroidserver/index.py b/fdroidserver/index.py index d3f9d44e..5a174d51 100644 --- a/fdroidserver/index.py +++ b/fdroidserver/index.py @@ -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"]