1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-02 07:20:37 +02:00

index: fix requestsdict check order of operations

If requestsdict is None, the old logic would still check
requestsdict["uninstall"]) and crash there.
This commit is contained in:
Hans-Christoph Steiner 2023-05-05 10:47:27 +02:00
parent 3efe797bf8
commit 8ccc89ad4e

View File

@ -735,7 +735,7 @@ def make_v2(apps, packages, repodir, repodict, requestsdict, fdroid_signing_key_
output = collections.OrderedDict()
output["repo"] = v2_repo(repodict, repodir, archive)
if requestsdict and requestsdict["install"] or requestsdict["uninstall"]:
if requestsdict and (requestsdict["install"] or requestsdict["uninstall"]):
output["repo"]["requests"] = requestsdict
# establish sort order of the index