mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
non-APK files will not have minSdkVersion, so don't force it
fdroidclient should handle no minSdkVersion fine, since it just parses the text in <sdkver></sdkver> as an int, and uses a default value if there is an Exception.
This commit is contained in:
parent
0be58c2dca
commit
7bae1075ba
1 changed files with 2 additions and 1 deletions
|
@ -1217,7 +1217,8 @@ def make_index(apps, sortedids, apks, repodir, archive):
|
||||||
hashel.appendChild(doc.createTextNode(apk[hash_type]))
|
hashel.appendChild(doc.createTextNode(apk[hash_type]))
|
||||||
apkel.appendChild(hashel)
|
apkel.appendChild(hashel)
|
||||||
addElement('size', str(apk['size']), doc, apkel)
|
addElement('size', str(apk['size']), doc, apkel)
|
||||||
addElement('sdkver', str(apk['minSdkVersion']), doc, apkel)
|
addElementIfInApk('sdkver', apk,
|
||||||
|
'minSdkVersion', doc, apkel)
|
||||||
addElementIfInApk('targetSdkVersion', apk,
|
addElementIfInApk('targetSdkVersion', apk,
|
||||||
'targetSdkVersion', doc, apkel)
|
'targetSdkVersion', doc, apkel)
|
||||||
addElementIfInApk('maxsdkver', apk,
|
addElementIfInApk('maxsdkver', apk,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue