mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Avoid default cases in build types
This commit is contained in:
parent
d42dd276a0
commit
8bbe38f172
1 changed files with 2 additions and 2 deletions
|
|
@ -607,7 +607,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
|
|||
|
||||
p = FDroidPopen(commands, cwd=gradle_dir)
|
||||
|
||||
else:
|
||||
elif thisbuild['type'] == 'ant':
|
||||
print "Building Ant project..."
|
||||
cmd = ['ant']
|
||||
if 'antcommand' in thisbuild:
|
||||
|
|
@ -649,7 +649,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
|
|||
else:
|
||||
name = '-'.join([os.path.basename(dd), '-'.join(flavours), 'release', 'unsigned'])
|
||||
src = os.path.join(dd, 'build', 'apk', name+'.apk')
|
||||
else:
|
||||
elif thisbuild['type'] == 'ant':
|
||||
stdout_apk = '\n'.join([
|
||||
line for line in p.stdout.splitlines() if '.apk' in line])
|
||||
src = re.match(r".*^.*Creating (.+) for release.*$.*", stdout_apk,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue