mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
Merge branch 'remove_latestapps_dat' into 'master'
remove unused latestapps.dat code See merge request fdroid/fdroidserver!794
This commit is contained in:
commit
3c148941f7
@ -2438,21 +2438,6 @@ def main():
|
|||||||
# Update known apks info...
|
# Update known apks info...
|
||||||
knownapks.writeifchanged()
|
knownapks.writeifchanged()
|
||||||
|
|
||||||
# Generate latest apps data for widget
|
|
||||||
if os.path.exists(os.path.join('stats', 'latestapps.txt')):
|
|
||||||
data = ''
|
|
||||||
with open(os.path.join('stats', 'latestapps.txt'), 'r') as f:
|
|
||||||
for line in f:
|
|
||||||
appid = line.rstrip()
|
|
||||||
data += appid + "\t"
|
|
||||||
app = apps[appid]
|
|
||||||
data += app.Name + "\t"
|
|
||||||
if app.icon is not None:
|
|
||||||
data += app.icon + "\t"
|
|
||||||
data += app.License + "\n"
|
|
||||||
with open(os.path.join(repodirs[0], 'latestapps.dat'), 'w') as f:
|
|
||||||
f.write(data)
|
|
||||||
|
|
||||||
if cachechanged:
|
if cachechanged:
|
||||||
write_cache(apkcache)
|
write_cache(apkcache)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user