mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03: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:
parent
3efe797bf8
commit
8ccc89ad4e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue