mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-14 11:10:30 +03:00
rename Build fields: version -> versionName, vercode -> versionCode
Since the YAML/JSON/etc. field names are now exactly the same as the field names used in the internal dict in the Build class, this is a global rename This keeps with the standard names used in Android: https://developer.android.com/guide/topics/manifest/manifest-element.html
This commit is contained in:
parent
c0bc3afda9
commit
e0f39a7e7b
13 changed files with 301 additions and 300 deletions
|
|
@ -457,7 +457,7 @@ def main():
|
|||
for build in reversed(app.builds):
|
||||
if build.disable:
|
||||
continue
|
||||
if options.latest or vercode == 0 or build.vercode == vercode:
|
||||
if options.latest or vercode == 0 or build.versionCode == vercode:
|
||||
app.builds = [build]
|
||||
break
|
||||
continue
|
||||
|
|
@ -467,7 +467,7 @@ def main():
|
|||
for build in app.builds:
|
||||
apks = []
|
||||
for f in os.listdir(options.repo_path):
|
||||
n = "%v_%v.apk".format(app_id, build.vercode)
|
||||
n = "%v_%v.apk".format(app_id, build.versionCode)
|
||||
if f == n:
|
||||
apks.append(f)
|
||||
for apk in sorted(apks):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue