make read_metadata only parse files actually used by lint/rewritemeta

Now that the description formatting is removed, there is no need to load
all of the app metadata before operating on a single one.  This change
makes lint and rewritemeta only load the metadata for the apps it is actually
operating on.  Before, it would always load all metadata files.  #845

closes #678
This commit is contained in:
Hans-Christoph Steiner 2020-11-17 16:43:26 +01:00
parent c98b15e72a
commit 129438fd30
3 changed files with 19 additions and 5 deletions

View file

@ -61,7 +61,7 @@ def main():
config = common.read_config(options)
# Get all apps...
allapps = metadata.read_metadata()
allapps = metadata.read_metadata(options.appid)
apps = common.read_app_args(options.appid, allapps, False)
for appid, app in apps.items():