mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
update: use "app" as dict not App instance in apply_info_from_latest_apk
This allows update.apply_info_from_latest_apk() to be used as part of the API. This way "app" can be a dict or an App instance.
This commit is contained in:
parent
283f10dec1
commit
790b5a2888
2 changed files with 12 additions and 12 deletions
|
|
@ -61,7 +61,7 @@ def make(apps, apks, repodir, archive):
|
|||
common.assert_config_keystore(common.config)
|
||||
|
||||
# Historically the index has been sorted by App Name, so we enforce this ordering here
|
||||
sortedids = sorted(apps, key=lambda appid: apps[appid].Name.upper())
|
||||
sortedids = sorted(apps, key=lambda appid: apps[appid]['Name'].upper())
|
||||
sortedapps = collections.OrderedDict()
|
||||
for appid in sortedids:
|
||||
sortedapps[appid] = apps[appid]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue