mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Revert "Try to fix nativecode issues on index"
This reverts commit de7b117c98
.
This commit is contained in:
parent
9f192ae920
commit
6cd5d0d667
1 changed files with 3 additions and 5 deletions
|
@ -295,9 +295,7 @@ def scan_apks(apps, apkcache, repodir, knownapks):
|
||||||
elif line.startswith("sdkVersion:"):
|
elif line.startswith("sdkVersion:"):
|
||||||
thisinfo['sdkversion'] = re.match(sdkversion_pat, line).group(1)
|
thisinfo['sdkversion'] = re.match(sdkversion_pat, line).group(1)
|
||||||
elif line.startswith("native-code:"):
|
elif line.startswith("native-code:"):
|
||||||
thisinfo['nativecode'] = line[14:-1]
|
thisinfo['nativecode'] = list(line[14:-1].split("' '"))
|
||||||
if "' '" in thisinfo['nativecode']:
|
|
||||||
thisinfo['nativecode'] = thisinfo['nativecode'].replace("' '", ",")
|
|
||||||
elif line.startswith("uses-permission:"):
|
elif line.startswith("uses-permission:"):
|
||||||
perm = re.match(string_pat, line).group(1)
|
perm = re.match(string_pat, line).group(1)
|
||||||
if perm.startswith("android.permission."):
|
if perm.startswith("android.permission."):
|
||||||
|
@ -536,8 +534,8 @@ def make_index(apps, apks, repodir, archive, categories):
|
||||||
perms = ""
|
perms = ""
|
||||||
if len(apk['permissions']) > 0:
|
if len(apk['permissions']) > 0:
|
||||||
addElement('permissions', ','.join(apk['permissions']), doc, apkel)
|
addElement('permissions', ','.join(apk['permissions']), doc, apkel)
|
||||||
if 'nativecode' in apk:
|
if 'nativecode' in apk and len(apk['nativecode']) > 0:
|
||||||
addElement('nativecode', apk['nativecode'], doc, apkel)
|
addElement('nativecode', ','.join(apk['nativecode']), doc, apkel)
|
||||||
if len(apk['features']) > 0:
|
if len(apk['features']) > 0:
|
||||||
addElement('features', ','.join(apk['features']), doc, apkel)
|
addElement('features', ','.join(apk['features']), doc, apkel)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue