mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 11:00:10 +01:00
Merge branch 'master' of gitorious.org:f-droid/fdroidserver
This commit is contained in:
commit
03c092998e
@ -988,14 +988,6 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
|||||||
for lib in build['srclibs'].split(';'):
|
for lib in build['srclibs'].split(';'):
|
||||||
srclibpaths.append(getsrclib(lib, srclib_dir, srclibpaths, preponly=onserver))
|
srclibpaths.append(getsrclib(lib, srclib_dir, srclibpaths, preponly=onserver))
|
||||||
|
|
||||||
for name, number, libpath in srclibpaths:
|
|
||||||
place_srclib(root_dir, int(number) if number else None, libpath)
|
|
||||||
|
|
||||||
basesrclib = vcs.getsrclib()
|
|
||||||
# If one was used for the main source, add that too.
|
|
||||||
if basesrclib:
|
|
||||||
srclibpaths.append(basesrclib)
|
|
||||||
|
|
||||||
# Apply patches if any
|
# Apply patches if any
|
||||||
if 'patch' in build:
|
if 'patch' in build:
|
||||||
for patch in build['patch'].split(';'):
|
for patch in build['patch'].split(';'):
|
||||||
@ -1006,6 +998,14 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
|||||||
'-i', os.path.abspath(patch_path)], cwd=build_dir) != 0:
|
'-i', os.path.abspath(patch_path)], cwd=build_dir) != 0:
|
||||||
raise BuildException("Failed to apply patch %s" % patch_path)
|
raise BuildException("Failed to apply patch %s" % patch_path)
|
||||||
|
|
||||||
|
for name, number, libpath in srclibpaths:
|
||||||
|
place_srclib(root_dir, int(number) if number else None, libpath)
|
||||||
|
|
||||||
|
basesrclib = vcs.getsrclib()
|
||||||
|
# If one was used for the main source, add that too.
|
||||||
|
if basesrclib:
|
||||||
|
srclibpaths.append(basesrclib)
|
||||||
|
|
||||||
# Run a pre-build command if one is required...
|
# Run a pre-build command if one is required...
|
||||||
if 'prebuild' in build:
|
if 'prebuild' in build:
|
||||||
cmd = replace_config_vars(build['prebuild'])
|
cmd = replace_config_vars(build['prebuild'])
|
||||||
|
Loading…
Reference in New Issue
Block a user