From 6f01bd4b023e20e8cf4dc883ddb3737bc843643a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 30 Dec 2013 12:38:08 +0100 Subject: [PATCH 01/68] Fix ndk install typo --- makebuildserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makebuildserver.py b/makebuildserver.py index e02e05e1..6ecf3601 100755 --- a/makebuildserver.py +++ b/makebuildserver.py @@ -71,7 +71,7 @@ cachefiles = [ ] if config['arch64']: cachefiles.extend([ - ('android-ndk-r9b-linux-x64_64.tar.bz2', + ('android-ndk-r9b-linux-x86_64.tar.bz2', 'http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2', '8956e9efeea95f49425ded8bb697013b66e162b064b0f66b5c75628f76e0f532'), ('android-ndk-r9b-linux-x86_64-legacy-toolchains.tar.bz2', From 57fde3de0f5987cde3fcdec493fd193a25199985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 23 Dec 2013 12:04:50 +0100 Subject: [PATCH 02/68] Only add AF xml element if there actually are AFs --- fdroidserver/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 7d761212..2446f852 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -578,7 +578,8 @@ def make_index(apps, apks, repodir, archive, categories): # filtering can be removed in time... if 'UpstreamNonFree' in af: af.remove('UpstreamNonFree') - addElement('antifeatures', ','.join(af), doc, apel) + if af: + addElement('antifeatures', ','.join(af), doc, apel) if app['Requires Root']: addElement('requirements', 'root', doc, apel) From d4b0556dcb2b8bab49cebdf0047d6ccdb0483439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 26 Dec 2013 19:18:36 +0100 Subject: [PATCH 03/68] Avoid strange outcomes of "adb devices" --- fdroidserver/install.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fdroidserver/install.py b/fdroidserver/install.py index b61cfcb4..0f444cff 100644 --- a/fdroidserver/install.py +++ b/fdroidserver/install.py @@ -33,7 +33,11 @@ def devices(): p = FDroidPopen(["adb", "devices"]) if p.returncode != 0: raise Exception("An error occured when finding devices: %s" % p.stderr) - return [l.split()[0] for l in p.stdout.splitlines()[1:-1]] + lines = p.stdout.splitlines() + if len(lines) < 3: + return [] + lines = lines[1:-1] + return [l.split()[0] for l in lines] def main(): From 3ed8ed60b95ac68140c2d21e6b699b647c4122d2 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sat, 28 Dec 2013 10:35:40 +0000 Subject: [PATCH 04/68] Fix latestapps stats, broken in 59cde15ad1 --- fdroidserver/stats.py | 1 - 1 file changed, 1 deletion(-) diff --git a/fdroidserver/stats.py b/fdroidserver/stats.py index be62f650..31784d3f 100644 --- a/fdroidserver/stats.py +++ b/fdroidserver/stats.py @@ -210,7 +210,6 @@ def main(): for antifeature, count in afs.iteritems(): f.write(antifeature + ' ' + str(count) + '\n') f.close() - return # Calculate and write stats for licenses... licenses = {} From e987fb17582e092e401650d77f04e2a257e34f25 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sat, 28 Dec 2013 10:35:50 +0000 Subject: [PATCH 05/68] Some minor stats improvements --- fdroidserver/stats.py | 100 ++++++++++++++++++++++++------------------ 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/fdroidserver/stats.py b/fdroidserver/stats.py index 31784d3f..c7bfde39 100644 --- a/fdroidserver/stats.py +++ b/fdroidserver/stats.py @@ -49,6 +49,8 @@ def main(): help="Spew out even more information than normal") parser.add_option("-d", "--download", action="store_true", default=False, help="Download logs we don't have") + parser.add_option("--nologs", action="store_true", default=False, + help="Don't do anything logs-related") (options, args) = parser.parse_args() config = common.read_config(options) @@ -105,51 +107,55 @@ def main(): if ssh is not None: ssh.close() - # Process logs - if options.verbose: - print 'Processing logs...' - logexpr = '(?P[.:0-9a-fA-F]+) - - \[(?P