Read only metadata of apps given on the command line

This commit is contained in:
Jochen Sprickerhof 2022-07-19 08:48:47 +02:00
parent 66018d3f09
commit 8ab1d53318
No known key found for this signature in database
GPG key ID: 5BFFDCC258E69433
9 changed files with 12 additions and 27 deletions

View file

@ -939,7 +939,7 @@ def get_metadata_files(vercodes):
return metadatafiles
def read_app_args(appid_versionCode_pairs, allapps, allow_version_codes=False):
def read_app_args(appid_versionCode_pairs, allow_version_codes=False, sort_by_time=False):
"""Build a list of App instances for processing.
On top of what read_pkg_args does, this returns the whole app
@ -950,6 +950,7 @@ def read_app_args(appid_versionCode_pairs, allapps, allow_version_codes=False):
"""
vercodes = read_pkg_args(appid_versionCode_pairs, allow_version_codes)
allapps = fdroidserver.metadata.read_metadata(appid_versionCode_pairs, sort_by_time)
if not vercodes:
return allapps