mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 06:20:12 +01:00
Create local.properties if it doesn't exist
This commit is contained in:
parent
5798887d53
commit
c9daf93f69
@ -1188,13 +1188,15 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
||||
if build['subdir']:
|
||||
localprops += [os.path.join(root_dir, 'local.properties')]
|
||||
for path in localprops:
|
||||
if not os.path.isfile(path):
|
||||
continue
|
||||
logging.info("Updating properties file at %s" % path)
|
||||
f = open(path, 'r')
|
||||
props = f.read()
|
||||
f.close()
|
||||
props += '\n'
|
||||
props = ""
|
||||
if os.path.isfile(path):
|
||||
logging.info("Updating local.properties file at %s" % path)
|
||||
f = open(path, 'r')
|
||||
props += f.read()
|
||||
f.close()
|
||||
props += '\n'
|
||||
else:
|
||||
logging.info("Creating local.properties file at %s" % path)
|
||||
# Fix old-fashioned 'sdk-location' by copying
|
||||
# from sdk.dir, if necessary
|
||||
if build['oldsdkloc']:
|
||||
|
Loading…
Reference in New Issue
Block a user