From 93a56e4f51c8c24cfa8ecb0649d2a69a0ba2d7c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 23 May 2014 09:47:11 +0200 Subject: [PATCH] Fall back to launchable-activity label if application has none This fixes apps like MiniZip not having a name --- fdroidserver/update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 4f9f1c82..ba3245bc 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -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: