From de7b117c987320d4cd55fbfea84fcf96bc4279db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Fri, 19 Jul 2013 11:47:35 +0200 Subject: [PATCH] Try to fix nativecode issues on index --- fdroidserver/update.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 04d05dfb..60a4d332 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -295,7 +295,9 @@ def scan_apks(apps, apkcache, repodir, knownapks): elif line.startswith("sdkVersion:"): thisinfo['sdkversion'] = re.match(sdkversion_pat, line).group(1) elif line.startswith("native-code:"): - thisinfo['nativecode'] = list(line[14:-1].split("' '")) + thisinfo['nativecode'] = line[14:-1] + if "' '" in thisinfo['nativecode']: + thisinfo['nativecode'] = thisinfo['nativecode'].replace("' '", ",") elif line.startswith("uses-permission:"): perm = re.match(string_pat, line).group(1) if perm.startswith("android.permission."): @@ -534,8 +536,8 @@ def make_index(apps, apks, repodir, archive, categories): perms = "" if len(apk['permissions']) > 0: addElement('permissions', ','.join(apk['permissions']), doc, apkel) - if 'nativecode' in apk and len(apk['nativecode']) > 0: - addElement('nativecode', ','.join(apk['nativecode']), doc, apkel) + if 'nativecode' in apk: + addElement('nativecode', apk['nativecode'], doc, apkel) if len(apk['features']) > 0: addElement('features', ','.join(apk['features']), doc, apkel) -- 2.30.2