common.get_app_display_name() for finding app names

This commit is contained in:
Hans-Christoph Steiner 2020-11-17 23:49:04 +01:00
parent c7fcfe3bfa
commit 0f6b638986
6 changed files with 44 additions and 11 deletions

View file

@ -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: common.get_app_display_name(apps[appid]).upper())
sortedapps = collections.OrderedDict()
for appid in sortedids:
sortedapps[appid] = apps[appid]