mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
set "accepted formats" for metadata in config.py
For a bit repo like f-droid.org, it makes sense to standardize on a single format for metadata files. This adds support for enforcing a single data format, or a reduced set of data formats. So f-droid.org would run like this if it changed to YAML: accepted_formats = ['txt', 'yaml'] Then once everything was converted to YAML, it could look like this: accepted_formats = ['yaml']
This commit is contained in:
parent
19ac44c189
commit
325db90918
4 changed files with 37 additions and 19 deletions
|
@ -213,6 +213,11 @@ carbon_port = 2003
|
|||
# --server option on dedicated secure build server hosts.
|
||||
build_server_always = False
|
||||
|
||||
# By default, fdroid will use YAML and the custom .txt metadata formats. It
|
||||
# is also possible to have metadata in JSON and XML. You can enable your
|
||||
# preferred formats by setting them in a list:
|
||||
# accepted_formats = ['json', 'txt', 'xml', 'yaml']
|
||||
|
||||
# Limit in number of characters that fields can take up
|
||||
# Only the fields listed here are supported, defaults shown
|
||||
char_limits = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue