replace $$srclib$$ with an absolute path

closes #725
This commit is contained in:
Hans-Christoph Steiner 2020-06-24 20:50:21 +02:00
parent b3f5176654
commit d0f426e076
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
3 changed files with 55 additions and 5 deletions

View file

@ -541,8 +541,7 @@ def build_local(app, build, vcs, build_dir, output_dir, log_dir, srclib_dir, ext
# Substitute source library paths into commands...
for name, number, libpath in srclibpaths:
libpath = os.path.relpath(libpath, root_dir)
cmd = cmd.replace('$$' + name + '$$', libpath)
cmd = cmd.replace('$$' + name + '$$', os.path.join(os.getcwd(), libpath))
p = FDroidPopen(['bash', '-x', '-c', cmd], cwd=root_dir)