From fb499db9ebc16931fbce41714287c95932ae3b53 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 26 Jun 2025 09:43:02 +0200 Subject: [PATCH] update: document "added" dates --- fdroidserver/update.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 75c4d907..887e59d3 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -2466,16 +2466,18 @@ def create_metadata_from_template(apk): def read_added_date_from_all_apks(apps, apks): - """No summary. + """Read the "added" date from all packages. - Added dates come from the repo/index-v2.json file but are - read when scanning apks and thus need to be applied form apk - level to app level for _all_ apps and not only from non-archived - ones + Added dates come from index-v2.json file but are read when scanning + APKs and thus need to be applied from package-level to app-level for + _all_ apps and not only from non-archived ones. TODO: read the added dates directly from index-v2.json instead of going through apks that way it also works for for repos that - don't keep an archive of apks. + don't keep an archive of APKs. + + https://gitlab.com/fdroid/wiki/-/wikis/PackageDateHandling + """ for appid, app in apps.items(): for apk in apks: