chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3483bad
)
Iterate over srclib Srclibs with indexes properly
author
Daniel Martí
<mvdan@mvdan.cc>
Wed, 19 Feb 2014 09:27:46 +0000
(10:27 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Wed, 19 Feb 2014 09:27:46 +0000
(10:27 +0100)
fdroidserver/common.py
patch
|
blob
|
history
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 6d7dca14f7e87b9993fcbad4b0e85b67bb23f1e9..3c24011a253b3b3be0680e2a6bdb66f0e37cf631 100644
(file)
--- a/
fdroidserver/common.py
+++ b/
fdroidserver/common.py
@@
-830,8
+830,7
@@
def getsrclib(spec, srclib_dir, srclibpaths=[], subdir=None,
libdir = sdir
if srclib["Srclibs"]:
- n=1
- for lib in srclib["Srclibs"]:
+ for n,lib in enumerate(srclib["Srclibs"]):
s_tuple = None
for t in srclibpaths:
if t[0] == lib:
@@
-841,7
+840,6
@@
def getsrclib(spec, srclib_dir, srclibpaths=[], subdir=None,
raise BuildException('Missing recursive srclib %s for %s' % (
lib, name))
place_srclib(libdir, n, s_tuple[2])
- n+=1
remove_signing_keys(sdir)
remove_debuggable_flags(sdir)