From: Daniel Martí Date: Fri, 24 May 2013 21:52:14 +0000 (+0200) Subject: Find out srclib repo type for stats X-Git-Tag: 0.1~564^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=bb867e1b6f954b11921824a8b93e87b9f85407b1;p=fdroidserver.git Find out srclib repo type for stats --- 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: