1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

Fall back to launchable-activity label if application has none

This fixes apps like MiniZip not having a name
This commit is contained in:
Daniel Martí 2014-05-23 09:47:11 +02:00
parent 295cddcddb
commit 93a56e4f51

View File

@ -402,6 +402,8 @@ def scan_apks(apps, apkcache, repodir, knownapks):
thisinfo['icons_src']['-1'] = match.group(1)
elif line.startswith("launchable-activity:"):
# Only use launchable-activity as fallback to application
if not thisinfo['name']:
thisinfo['name'] = re.match(label_pat, line).group(1)
if '-1' not in thisinfo['icons_src']:
match = re.match(icon_pat_nodpi, line)
if match: