mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
code format cleanup
This commit is contained in:
parent
007c62065d
commit
0d836751e5
@ -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…
Reference in New Issue
Block a user