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