mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
Try to fix srclibs on server builds
This commit is contained in:
parent
93b2dca3a3
commit
cb282217d6
@ -285,11 +285,19 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force):
|
||||
srclibpaths = []
|
||||
if 'srclibs' in thisbuild:
|
||||
for lib in thisbuild['srclibs'].split(';'):
|
||||
number = None
|
||||
subdir = None
|
||||
lib = lib.strip()
|
||||
name, _ = lib.split('@')
|
||||
name, ref = lib.split('@')
|
||||
if ':' in name:
|
||||
number, name = name.split(':', 1)
|
||||
if '/' in name:
|
||||
name, subdir = name.split('/',1)
|
||||
if options.verbose:
|
||||
print "Processing srclib '" + name + "'"
|
||||
srclibpaths.append((name, common.getsrclib(lib, 'build/srclib', basepath=True, prepare=False)))
|
||||
libpath = common.getsrclib(name+'@'+ref, 'build/srclib', srclibpaths, subdir, basepath=True, prepare=False)
|
||||
srclibpaths.append((name, number, libpath))
|
||||
|
||||
# If one was used for the main source, add that too.
|
||||
basesrclib = vcs.getsrclib()
|
||||
if basesrclib:
|
||||
|
Loading…
Reference in New Issue
Block a user