From: Hans-Christoph Steiner Date: Thu, 8 Dec 2016 18:30:38 +0000 (+0100) Subject: non-APK files will not have minSdkVersion, so don't force it X-Git-Tag: 0.8~111^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7bae1075ba1e520582ad8b4d88fa0ea6cf0875bd;p=fdroidserver.git 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 as an int, and uses a default value if there is an Exception. --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index a81eda21..a0324aac 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -1217,7 +1217,8 @@ def make_index(apps, sortedids, apks, repodir, archive): hashel.appendChild(doc.createTextNode(apk[hash_type])) apkel.appendChild(hashel) addElement('size', str(apk['size']), doc, apkel) - addElement('sdkver', str(apk['minSdkVersion']), doc, apkel) + addElementIfInApk('sdkver', apk, + 'minSdkVersion', doc, apkel) addElementIfInApk('targetSdkVersion', apk, 'targetSdkVersion', doc, apkel) addElementIfInApk('maxsdkver', apk,