update: document "added" dates

This commit is contained in:
Hans-Christoph Steiner 2025-06-26 09:43:02 +02:00
parent b03fe31ae4
commit fb499db9eb

View file

@ -2466,16 +2466,18 @@ def create_metadata_from_template(apk):
def read_added_date_from_all_apks(apps, apks): 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 Added dates come from index-v2.json file but are read when scanning
read when scanning apks and thus need to be applied form apk APKs and thus need to be applied from package-level to app-level for
level to app level for _all_ apps and not only from non-archived _all_ apps and not only from non-archived ones.
ones
TODO: read the added dates directly from index-v2.json instead of TODO: read the added dates directly from index-v2.json instead of
going through apks that way it also works for for repos that 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 appid, app in apps.items():
for apk in apks: for apk in apks: