1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Remove "Srclibs:" from srclib metadata files

They are handled per build, this feature is of little help and practically
unused in master.
This commit is contained in:
Daniel Martí 2015-06-03 13:51:41 +02:00
parent 7a3baa01ed
commit 439cabb7f3
3 changed files with 4 additions and 21 deletions

View File

@ -348,8 +348,7 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force):
if thisbuild['srclibs']: if thisbuild['srclibs']:
for lib in thisbuild['srclibs']: for lib in thisbuild['srclibs']:
srclibpaths.append( srclibpaths.append(
common.getsrclib(lib, 'build/srclib', srclibpaths, common.getsrclib(lib, 'build/srclib', basepath=True, prepare=False))
basepath=True, prepare=False))
# If one was used for the main source, add that too. # If one was used for the main source, add that too.
basesrclib = vcs.getsrclib() basesrclib = vcs.getsrclib()

View File

@ -1108,8 +1108,8 @@ class BuildException(FDroidException):
# Returns the path to it. Normally this is the path to be used when referencing # Returns the path to it. Normally this is the path to be used when referencing
# it, which may be a subdirectory of the actual project. If you want the base # it, which may be a subdirectory of the actual project. If you want the base
# directory of the project, pass 'basepath=True'. # directory of the project, pass 'basepath=True'.
def getsrclib(spec, srclib_dir, srclibpaths=[], subdir=None, def getsrclib(spec, srclib_dir, subdir=None, basepath=False,
basepath=False, raw=False, prepare=True, preponly=False): raw=False, prepare=True, preponly=False):
number = None number = None
subdir = None subdir = None
@ -1152,20 +1152,6 @@ def getsrclib(spec, srclib_dir, srclibpaths=[], subdir=None,
if libdir is None: if libdir is None:
libdir = sdir libdir = sdir
if srclib["Srclibs"]:
n = 1
for lib in metadata.split_list_values(srclib["Srclibs"]):
s_tuple = None
for t in srclibpaths:
if t[0] == lib:
s_tuple = t
break
if s_tuple is None:
raise VCSException('Missing recursive srclib %s for %s' % (
lib, name))
place_srclib(libdir, n, s_tuple[2])
n += 1
remove_signing_keys(sdir) remove_signing_keys(sdir)
remove_debuggable_flags(sdir) remove_debuggable_flags(sdir)
@ -1247,8 +1233,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
if build['srclibs']: if build['srclibs']:
logging.info("Collecting source libraries") logging.info("Collecting source libraries")
for lib in build['srclibs']: for lib in build['srclibs']:
srclibpaths.append(getsrclib(lib, srclib_dir, build, srclibpaths, srclibpaths.append(getsrclib(lib, srclib_dir, build, preponly=onserver))
preponly=onserver))
for name, number, libpath in srclibpaths: for name, number, libpath in srclibpaths:
place_srclib(root_dir, int(number) if number else None, libpath) place_srclib(root_dir, int(number) if number else None, libpath)

View File

@ -414,7 +414,6 @@ def parse_srclib(metafile):
thisinfo['Repo'] = '' thisinfo['Repo'] = ''
thisinfo['Subdir'] = None thisinfo['Subdir'] = None
thisinfo['Prepare'] = None thisinfo['Prepare'] = None
thisinfo['Srclibs'] = None
if metafile is None: if metafile is None:
return thisinfo return thisinfo