chiark / gitweb /
Find out srclib repo type for stats
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 24 May 2013 21:52:14 +0000 (23:52 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 24 May 2013 21:52:14 +0000 (23:52 +0200)
fdroidserver/stats.py

index 45928cd63b9c2c2f7ce5aa2610382e636c10d9a1..5f981cf617322b01ff9e60b646947dafda2c29c7 100644 (file)
@@ -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: