1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 11:00:10 +01:00

metadata: port .fdroid.yml handling to App dict subclass

This got overlooked in b7fc7f2228, then
caught in the ./makebuildserver tests, where it builds Checkey.
This commit is contained in:
Hans-Christoph Steiner 2017-02-28 10:37:09 +01:00
parent 5214889bbd
commit 4e8e297944

View File

@ -912,10 +912,10 @@ def parse_metadata(metadatapath, check_vcs=False):
if os.path.isfile(metadata_in_repo):
logging.debug('Including metadata from ' + metadata_in_repo)
# do not include fields already provided by main metadata file
app_in_repo = parse_metadata(metadata_in_repo).field_dict()
app_in_repo = parse_metadata(metadata_in_repo)
for k, v in app_in_repo.items():
if k not in app.field_dict():
app.set_field(k, v)
if k not in app:
app[k] = v
post_metadata_parse(app)