From 7bae1075ba1e520582ad8b4d88fa0ea6cf0875bd Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 8 Dec 2016 19:30:38 +0100 Subject: [PATCH] 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. --- fdroidserver/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,