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

Merge branch 'fix/use_date_from_apk' into 'master'

Fix --use-date-from-apk flag

Closes #947

See merge request fdroid/fdroidserver!1067
This commit is contained in:
Hans-Christoph Steiner 2022-02-15 22:39:08 +00:00
commit 5ec952ab8a

View File

@ -1500,8 +1500,8 @@ def process_apk(apkcache, apkfilename, repodir, knownapks, use_date_from_apk=Fal
# resize existing icons for densities missing in the APK
fill_missing_icon_densities(empty_densities, iconfilename, apk, repodir)
if use_date_from_apk and manifest.date_time[1] != 0:
default_date_param = datetime(*manifest.date_time)
if use_date_from_apk:
default_date_param = datetime.fromtimestamp(os.stat(apkfile).st_mtime)
else:
default_date_param = None