1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01: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) thisinfo['icons_src']['-1'] = match.group(1)
elif line.startswith("launchable-activity:"): elif line.startswith("launchable-activity:"):
# Only use launchable-activity as fallback to application # 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']: if '-1' not in thisinfo['icons_src']:
match = re.match(icon_pat_nodpi, line) match = re.match(icon_pat_nodpi, line)
if match: if match: