mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01: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
@ -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'))):
|
||||
apkfilename = apkfile[len(repodir) + 1:]
|
||||
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)
|
||||
if skip:
|
||||
continue
|
||||
apks.append(apk)
|
||||
cachechanged = cachechanged or cachethis
|
||||
|
||||
return apks, cachechanged
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user