mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
More dates
This commit is contained in:
parent
2bd3a49d78
commit
984b1ee918
2 changed files with 71 additions and 61 deletions
10
update.py
10
update.py
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue