More dates

This commit is contained in:
Ciaran Gultnieks 2012-01-28 18:01:25 +00:00
parent 2bd3a49d78
commit 984b1ee918
2 changed files with 71 additions and 61 deletions

View file

@ -498,6 +498,16 @@ for apk in apks:
knownapks.changed = True
else:
print "...didn't find addition of build line"
else:
oldestvercode = 99999999
for apk2 in apks:
if apk2['id'] == apk['id']:
if apk2['versioncode'] < oldestvercode:
oldestvercode = apk2['versioncode']
if oldestvercode == apk['versioncode']:
print '...oldest non-built apk - using metadata commit date'
knownapks.apks[apk['apkname']] = (apk['id'], time.strptime(d, '%Y-%m-%d'))
knownapks.changed = True
knownapks.writeifchanged()