Merge branch 'master' of gitorious.org:f-droid/fdroidserver

This commit is contained in:
Ciaran Gultnieks 2013-05-25 14:10:29 +01:00
commit 0985a6d4f4
4 changed files with 81 additions and 54 deletions

View file

@ -161,7 +161,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:
@ -174,7 +177,7 @@ def main():
# Calculate and write stats for update check modes...
ucms = {}
for app in metaapps:
checkmode = app['Update Check Mode']
checkmode = app['Update Check Mode'].split('/')[0]
if checkmode in ucms:
ucms[checkmode] += 1;
else:
@ -197,8 +200,6 @@ def main():
f.write(license + ' ' + str(count) + '\n')
f.close()
# Write list of latest apps added to the repo...
latest = knownapks.getlatest(10)
f = open('stats/latestapps.txt', 'w')