if os.path.exists(dest_also):
return False
- if thisbuild['commit'].startswith('!') or 'disable' in thisbuild:
+ if 'disable' in thisbuild:
return False
print "Building version " + thisbuild['version'] + ' of ' + app['id']
if parts[2].startswith('!'):
# For backwards compatibility, handle old-style disabling,
# including attempting to extract the commit from the message
- thisbuild['disabled'] = parts[2]
+ thisbuild['disable'] = parts[2]
commit = 'unknown - see disabled'
index = parts[2].rfind('at ')
if index != -1:
# This defines the preferred order for the build items - as in the
# manual, they're roughly in order of application.
- keyorder = ['disabled', 'commit', 'subdir', 'submodules', 'init',
+ keyorder = ['disable', 'commit', 'subdir', 'submodules', 'init',
'oldsdkloc', 'target', 'compilesdk', 'update',
'encoding', 'forceversion', 'forcevercode', 'rm',
'fixtrans', 'fixapos', 'extlibs', 'srclibs',
for thisbuild in app['builds']:
- if thisbuild['commit'].startswith('!') or 'disable' in thisbuild:
+ if 'disable' in thisbuild:
print ("..skipping version " + thisbuild['version'] + " - " +
thisbuild.get('disable', thisbuild['commit'][1:]))
else:
"""
for app in apps:
for build in app['builds']:
- if build['commit'].startswith('!') or 'disable' in build:
+ if 'disable' in build:
apkfilename = app['id'] + '_' + str(build['vercode']) + '.apk'
for repodir in repodirs:
apkpath = os.path.join(repodir, apkfilename)