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

fixup! metadata: Make ArchivePolicy an interger internally

This commit is contained in:
Gregor Düster 2023-05-30 23:05:59 +02:00
parent 9ef2088ace
commit 31791b44f3
No known key found for this signature in database
GPG Key ID: 1B4181FC97673B9D

View File

@ -1226,10 +1226,10 @@ def _app_to_yaml(app):
if len(value) == 1: if len(value) == 1:
cm[field] = value[0] cm[field] = value[0]
else: else:
cm[field] = value
elif field == 'ArchivePolicy': elif field == 'ArchivePolicy':
if value is None: if value is None:
continue continue
cm[field] = _field_to_yaml(fieldtype(field), value)
cm[field] = value cm[field] = value
elif _fieldtype == TYPE_MULTILINE: elif _fieldtype == TYPE_MULTILINE:
v = _format_multiline(value) v = _format_multiline(value)