mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Don't need legacy disabled build handling everywhere now
This commit is contained in:
parent
075551b715
commit
ccdea798fc
@ -681,7 +681,7 @@ def trybuild(app, thisbuild, build_dir, output_dir, also_check_dir, srclib_dir,
|
||||
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']
|
||||
|
@ -475,7 +475,7 @@ def parse_metadata(metafile, verbose=False):
|
||||
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:
|
||||
@ -757,7 +757,7 @@ def write_metadata(dest, app, verbose=False):
|
||||
|
||||
# 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',
|
||||
|
@ -86,7 +86,7 @@ def main():
|
||||
|
||||
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:
|
||||
|
@ -232,7 +232,7 @@ def delete_disabled_builds(apps, apkcache, repodirs):
|
||||
"""
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user