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:
parent
295cddcddb
commit
93a56e4f51
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user