mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Also fix local.prop files before subdir
If subdir=foo/bar and there is a foo/local.properties file, it would not get treated.
This commit is contained in:
parent
d141bd1be0
commit
37b13c37d5
1 changed files with 5 additions and 1 deletions
|
@ -1283,7 +1283,11 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
|||
# Update the local.properties file
|
||||
localprops = [os.path.join(build_dir, 'local.properties')]
|
||||
if build['subdir']:
|
||||
localprops += [os.path.join(root_dir, 'local.properties')]
|
||||
parts = build['subdir'].split(os.sep)
|
||||
cur = build_dir
|
||||
for d in parts:
|
||||
cur = os.path.join(cur, d)
|
||||
localprops += [os.path.join(cur, 'local.properties')]
|
||||
for path in localprops:
|
||||
props = ""
|
||||
if os.path.isfile(path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue