mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
Fix a couple gradle python mistakes
This commit is contained in:
parent
3687147997
commit
d5859fab32
@ -1013,12 +1013,14 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
|||||||
if flavour in ['main', 'yes', '']:
|
if flavour in ['main', 'yes', '']:
|
||||||
flavour = None
|
flavour = None
|
||||||
|
|
||||||
if 'target' in thisbuild:
|
if 'target' in build:
|
||||||
n = thisbuild["target"].split('-')[1]
|
n = build["target"].split('-')[1]
|
||||||
subprocess.call(['sed', '-i',
|
subprocess.call(['sed', '-i',
|
||||||
's@compileSdkVersion[ ]*[0-9]*@compileSdkVersion '+n+'@g',
|
's@compileSdkVersion[ ]*[0-9]*@compileSdkVersion '+n+'@g',
|
||||||
'build.gradle'], cwd=root_dir)
|
'build.gradle'], cwd=root_dir)
|
||||||
if '@' in thisbuild['gradle']:
|
if '@' in build['gradle']:
|
||||||
|
gradle_dir = os.path.join(root_dir, build['gradle'].split('@',1)[1])
|
||||||
|
gradle_dir = os.path.normpath(gradle_dir)
|
||||||
subprocess.call(['sed', '-i',
|
subprocess.call(['sed', '-i',
|
||||||
's@compileSdkVersion[ ]*[0-9]*@compileSdkVersion '+n+'@g',
|
's@compileSdkVersion[ ]*[0-9]*@compileSdkVersion '+n+'@g',
|
||||||
'build.gradle'], cwd=gradle_dir)
|
'build.gradle'], cwd=gradle_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user