mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
code format cleanup
This commit is contained in:
parent
007c62065d
commit
0d836751e5
1 changed files with 6 additions and 3 deletions
|
|
@ -136,7 +136,8 @@ def make(apps, apks, repodir, archive):
|
||||||
def _should_file_be_generated(path, magic_string):
|
def _should_file_be_generated(path, magic_string):
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
with open(path) as f:
|
with open(path) as f:
|
||||||
if magic_string not in f.readline(): # if the magic_string is not in the first line the file should be overwritten
|
# if the magic_string is not in the first line the file should be overwritten
|
||||||
|
if magic_string not in f.readline():
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
@ -145,8 +146,10 @@ def make_website(apps, repodir, repodict):
|
||||||
_ignored, repo_pubkey_fingerprint = extract_pubkey()
|
_ignored, repo_pubkey_fingerprint = extract_pubkey()
|
||||||
repo_pubkey_fingerprint_stripped = repo_pubkey_fingerprint.replace(" ", "")
|
repo_pubkey_fingerprint_stripped = repo_pubkey_fingerprint.replace(" ", "")
|
||||||
link = repodict["address"]
|
link = repodict["address"]
|
||||||
link_fingerprinted = "{link}?fingerprint={fingerprint}".format(link=link, fingerprint=repo_pubkey_fingerprint_stripped)
|
link_fingerprinted = ('{link}?fingerprint={fingerprint}'
|
||||||
autogenerate_comment = "auto-generated - fdroid index updates will overwrite this file" # do not change this string, as it will break the updates for existing files with older versions of this string
|
.format(link=link, fingerprint=repo_pubkey_fingerprint_stripped))
|
||||||
|
# do not change this string, as it will break updates for files with older versions of this string
|
||||||
|
autogenerate_comment = "auto-generated - fdroid index updates will overwrite this file"
|
||||||
|
|
||||||
if not os.path.exists(repodir):
|
if not os.path.exists(repodir):
|
||||||
os.makedirs(repodir)
|
os.makedirs(repodir)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue