mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
update: write cache file if anything has changed it
This fixes a bug introduced in 04db6870
where cachechanged for scan_apks()
was set only by the last call to scan_apk().
This commit is contained in:
parent
5f0817d7bf
commit
e75cabfe77
1 changed files with 3 additions and 2 deletions
|
@ -1385,11 +1385,12 @@ def scan_apks(apkcache, repodir, knownapks, use_date_from_apk=False):
|
||||||
for apkfile in sorted(glob.glob(os.path.join(repodir, '*.apk'))):
|
for apkfile in sorted(glob.glob(os.path.join(repodir, '*.apk'))):
|
||||||
apkfilename = apkfile[len(repodir) + 1:]
|
apkfilename = apkfile[len(repodir) + 1:]
|
||||||
ada = options.allow_disabled_algorithms or config['allow_disabled_algorithms']
|
ada = options.allow_disabled_algorithms or config['allow_disabled_algorithms']
|
||||||
(skip, apk, cachechanged) = scan_apk(apkcache, apkfilename, repodir, knownapks,
|
(skip, apk, cachethis) = scan_apk(apkcache, apkfilename, repodir, knownapks,
|
||||||
use_date_from_apk, ada, True)
|
use_date_from_apk, ada, True)
|
||||||
if skip:
|
if skip:
|
||||||
continue
|
continue
|
||||||
apks.append(apk)
|
apks.append(apk)
|
||||||
|
cachechanged = cachechanged or cachethis
|
||||||
|
|
||||||
return apks, cachechanged
|
return apks, cachechanged
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue