From: Daniel Martí Date: Fri, 19 Jul 2013 09:47:35 +0000 (+0200) Subject: Try to fix nativecode issues on index X-Git-Tag: 0.1~475 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=de7b117c987320d4cd55fbfea84fcf96bc4279db;p=fdroidserver.git Try to fix nativecode issues on index --- 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)