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

Iterate over srclib Srclibs with indexes properly

This commit is contained in:
Daniel Martí 2014-02-19 10:27:46 +01:00
parent 3483bad392
commit 0c2104039b

View File

@ -830,8 +830,7 @@ def getsrclib(spec, srclib_dir, srclibpaths=[], subdir=None,
libdir = sdir libdir = sdir
if srclib["Srclibs"]: if srclib["Srclibs"]:
n=1 for n,lib in enumerate(srclib["Srclibs"]):
for lib in srclib["Srclibs"]:
s_tuple = None s_tuple = None
for t in srclibpaths: for t in srclibpaths:
if t[0] == lib: if t[0] == lib:
@ -841,7 +840,6 @@ def getsrclib(spec, srclib_dir, srclibpaths=[], subdir=None,
raise BuildException('Missing recursive srclib %s for %s' % ( raise BuildException('Missing recursive srclib %s for %s' % (
lib, name)) lib, name))
place_srclib(libdir, n, s_tuple[2]) 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)