cmdline += ' --verbose'
cmdline += " %s:%s" % (app.id, build.vercode)
chan.exec_command('bash --login -c "' + cmdline + '"')
+
output = bytes()
+ output += b'== Installed Android Tools ==\n\n'
+ output += get_android_tools_version_log(build.ndk_path()).encode()
while not chan.exit_status_ready():
while chan.recv_ready():
output += chan.recv(1024)
return True
-def get_android_tools_versions(sdk_path, ndk_path=None):
+def get_android_tools_versions(ndk_path=None):
'''get a list of the versions of all installed Android SDK/NDK components'''
+ global config
+ sdk_path = config['sdk_path']
if sdk_path[-1] != '/':
sdk_path += '/'
components = []
return components
-def get_android_tools_version_log(sdk_path, ndk_path):
+def get_android_tools_version_log(ndk_path):
'''get a list of the versions of all installed Android SDK/NDK components'''
log = ''
- components = get_android_tools_versions(sdk_path, ndk_path)
+ components = get_android_tools_versions(ndk_path)
for name, version in sorted(components):
log += '* ' + name + ' (' + version + ')\n'
for build in app.builds:
wikilog = None
tools_version_log = '== Installed Android Tools ==\n\n'
- tools_version_log += get_android_tools_version_log(config['sdk_path'], build.ndk_path())
+ tools_version_log += get_android_tools_version_log(build.ndk_path())
try:
# For the first build of a particular app, we need to set up