1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Keep known_apks sorted for readable diffs

This commit is contained in:
Ciaran Gultnieks 2012-01-19 14:14:14 +00:00
parent 05e84365ec
commit 10196d04c7
2 changed files with 570 additions and 567 deletions

View File

@ -799,8 +799,11 @@ class KnownApks:
if not os.path.exists('stats'):
os.mkdir('stats')
f = open(self.path, 'w')
lst = []
for apk, app in self.apks.iteritems():
f.write(apk + ' ' + app + '\n')
lst.append(apk + ' ' + app)
for line in sorted(lst):
f.write(line + '\n')
f.close()
def recordapk(self, apk, app):

File diff suppressed because it is too large Load Diff