mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue