Tracking of dates apks are added to the repo

This commit is contained in:
Ciaran Gultnieks 2012-01-19 23:03:35 +00:00
parent 23a83e1b1e
commit 15ce8303f9
2 changed files with 15 additions and 7 deletions

View file

@ -112,10 +112,11 @@ for logfile in glob.glob(os.path.join(logsdir,'access-*.log')):
_, apkname = os.path.split(uri)
app = knownapks.getapp(apkname)
if app:
if app in apps:
apps[app] += 1
appid, _ = app
if appid in apps:
apps[appid] += 1
else:
apps[app] = 1
apps[appid] = 1
else:
if not apkname in unknownapks:
unknownapks.append(apkname)