chiark / gitweb /
Revert "Try to fix nativecode issues on index"
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 22 Jul 2013 14:02:35 +0000 (15:02 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 22 Jul 2013 14:12:33 +0000 (15:12 +0100)
This reverts commit de7b117c987320d4cd55fbfea84fcf96bc4279db.

fdroidserver/update.py

index 60a4d332ff876569883f994a980ec0301a5a2d68..04d05dfbe772f34adf7cb134b5cd714f4babfde2 100644 (file)
@@ -295,9 +295,7 @@ 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'] = line[14:-1]
-                    if "' '" in thisinfo['nativecode']:
-                        thisinfo['nativecode'] = thisinfo['nativecode'].replace("' '", ",")
+                    thisinfo['nativecode'] = list(line[14:-1].split("' '"))
                 elif line.startswith("uses-permission:"):
                     perm = re.match(string_pat, line).group(1)
                     if perm.startswith("android.permission."):
@@ -536,8 +534,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:
-                        addElement('nativecode', apk['nativecode'], doc, apkel)
+                    if 'nativecode' in apk and len(apk['nativecode']) > 0:
+                        addElement('nativecode', ','.join(apk['nativecode']), doc, apkel)
                     if len(apk['features']) > 0:
                         addElement('features', ','.join(apk['features']), doc, apkel)