mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +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
|
@ -296,9 +296,9 @@ def main():
|
|||
|
||||
if build.disable:
|
||||
logging.info("...skipping version %s - %s" % (
|
||||
build.version, build.get('disable', build.commit[1:])))
|
||||
build.versionName, build.get('disable', build.commit[1:])))
|
||||
else:
|
||||
logging.info("...scanning version " + build.version)
|
||||
logging.info("...scanning version " + build.versionName)
|
||||
|
||||
# Prepare the source code...
|
||||
root_dir, _ = common.prepare_source(vcs, app, build,
|
||||
|
@ -309,7 +309,7 @@ def main():
|
|||
count = scan_source(build_dir, root_dir, build)
|
||||
if count > 0:
|
||||
logging.warn('Scanner found %d problems in %s (%s)' % (
|
||||
count, appid, build.vercode))
|
||||
count, appid, build.versionCode))
|
||||
probcount += count
|
||||
|
||||
except BuildException as be:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue