mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Add support for maxSdkVersion, bump index version integer
This commit is contained in:
parent
32ae8bc565
commit
8888cd6339
1 changed files with 5 additions and 1 deletions
|
@ -405,6 +405,8 @@ def scan_apks(apps, apkcache, repodir, knownapks):
|
||||||
thisinfo['icons_src'][density] = path
|
thisinfo['icons_src'][density] = path
|
||||||
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("maxSdkVersion:"):
|
||||||
|
thisinfo['maxsdkversion'] = re.match(sdkversion_pat, line).group(1)
|
||||||
elif line.startswith("native-code:"):
|
elif line.startswith("native-code:"):
|
||||||
thisinfo['nativecode'] = []
|
thisinfo['nativecode'] = []
|
||||||
for arch in line[13:].split(' '):
|
for arch in line[13:].split(' '):
|
||||||
|
@ -623,7 +625,7 @@ def make_index(apps, apks, repodir, archive, categories):
|
||||||
repoel.setAttribute("url", config['repo_url'])
|
repoel.setAttribute("url", config['repo_url'])
|
||||||
addElement('description', config['repo_description'], doc, repoel)
|
addElement('description', config['repo_description'], doc, repoel)
|
||||||
|
|
||||||
repoel.setAttribute("version", "11")
|
repoel.setAttribute("version", "12")
|
||||||
repoel.setAttribute("timestamp", str(int(time.time())))
|
repoel.setAttribute("timestamp", str(int(time.time())))
|
||||||
|
|
||||||
if config['repo_keyalias']:
|
if config['repo_keyalias']:
|
||||||
|
@ -759,6 +761,8 @@ def make_index(apps, apks, repodir, archive, categories):
|
||||||
addElement('sig', apk['sig'], doc, apkel)
|
addElement('sig', apk['sig'], doc, apkel)
|
||||||
addElement('size', str(apk['size']), doc, apkel)
|
addElement('size', str(apk['size']), doc, apkel)
|
||||||
addElement('sdkver', str(apk['sdkversion']), doc, apkel)
|
addElement('sdkver', str(apk['sdkversion']), doc, apkel)
|
||||||
|
if 'maxsdkversion' in apk:
|
||||||
|
addElement('maxsdkver', str(apk['maxsdkversion']), doc, apkel)
|
||||||
if 'added' in apk:
|
if 'added' in apk:
|
||||||
addElement('added', time.strftime('%Y-%m-%d', apk['added']), doc, apkel)
|
addElement('added', time.strftime('%Y-%m-%d', apk['added']), doc, apkel)
|
||||||
if app['Requires Root']:
|
if app['Requires Root']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue