From: Hans-Christoph Steiner Date: Mon, 6 Jun 2016 18:13:57 +0000 (+0200) Subject: rename 'sdkversion' var to 'minSdkVersion' to avoid confusion X-Git-Tag: 0.7.0~52^2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1feccf9eb878fe15f8cc9ea2fcbe2c620462609d;p=fdroidserver.git rename 'sdkversion' var to 'minSdkVersion' to avoid confusion 'sdkversion' is confusing when there is also 'targetSdkVersion' and 'maxSdkVersion'. --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index fa182089..b7104ca9 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -523,7 +523,7 @@ def scan_apks(apps, apkcache, repodir, knownapks, use_date_from_apk=False): logging.error(line.replace('sdkVersion:', '') + ' is not a valid minSdkVersion!') else: - apk['sdkversion'] = m.group(1) + apk['minSdkVersion'] = m.group(1) elif line.startswith("maxSdkVersion:"): apk['maxSdkVersion'] = re.match(sdkversion_pat, line).group(1) elif line.startswith("native-code:"): @@ -545,9 +545,9 @@ def scan_apks(apps, apkcache, repodir, knownapks, use_date_from_apk=False): perm = perm[16:] apk['features'].add(perm) - if 'sdkversion' not in apk: + if 'minSdkVersion' not in apk: logging.warn("No SDK version information found in {0}".format(apkfile)) - apk['sdkversion'] = 0 + apk['minSdkVersion'] = 0 # Check for debuggable apks... if common.isApkDebuggable(apkfile, config): @@ -936,7 +936,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories): apkel.appendChild(hashel) addElement('sig', apk['sig'], doc, apkel) addElement('size', str(apk['size']), doc, apkel) - addElement('sdkver', str(apk['sdkversion']), doc, apkel) + addElement('sdkver', str(apk['minSdkVersion']), doc, apkel) if 'maxSdkVersion' in apk: addElement('maxsdkver', str(apk['maxSdkVersion']), doc, apkel) if 'added' in apk: