mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Fix buildTools versions that reference variables
This commit is contained in:
parent
c6434476e9
commit
85b48a5c25
1 changed files with 5 additions and 4 deletions
|
|
@ -428,13 +428,14 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force):
|
||||||
|
|
||||||
|
|
||||||
def adapt_gradle(build_dir):
|
def adapt_gradle(build_dir):
|
||||||
|
filename = 'build.gradle'
|
||||||
for root, dirs, files in os.walk(build_dir):
|
for root, dirs, files in os.walk(build_dir):
|
||||||
if 'build.gradle' in files:
|
if filename in files:
|
||||||
path = os.path.join(root, 'build.gradle')
|
path = os.path.join(root, filename)
|
||||||
logging.debug("Adapting build.gradle at %s" % path)
|
logging.debug("Adapting %s at %s" % (filename, path))
|
||||||
|
|
||||||
FDroidPopen(['sed', '-i',
|
FDroidPopen(['sed', '-i',
|
||||||
r's@buildToolsVersion\([ =]*\)["\'][0-9\.]*["\']@buildToolsVersion\1"'
|
r's@buildToolsVersion\([ =]\+\).*@buildToolsVersion\1"'
|
||||||
+ config['build_tools'] + '"@g', path])
|
+ config['build_tools'] + '"@g', path])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue