From bb867e1b6f954b11921824a8b93e87b9f85407b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 24 May 2013 23:52:14 +0200 Subject: [PATCH] Find out srclib repo type for stats --- fdroidserver/stats.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fdroidserver/stats.py b/fdroidserver/stats.py index 45928cd6..5f981cf6 100644 --- a/fdroidserver/stats.py +++ b/fdroidserver/stats.py @@ -163,7 +163,10 @@ def main(): if len(app['Repo Type']) == 0: rtype = 'none' else: - rtype = app['Repo Type'] + if app['Repo Type'] == 'srclib': + rtype = common.getsrclibvcs(app['Repo']) + else: + rtype = app['Repo Type'] if rtype in repotypes: repotypes[rtype] += 1; else: