metadata: RequiresRoot is boolean, according to docs

"Set this optional field to ‘True’ if the application requires root
privileges to be usable."
https://f-droid.org/docs/Build_Metadata_Reference/#RequiresRoot
This commit is contained in:
Hans-Christoph Steiner 2023-05-09 13:43:33 +02:00
parent 0393e46af9
commit b0c05842d8
2 changed files with 2 additions and 1 deletions

View File

@ -189,6 +189,7 @@ fieldtypes = {
'MaintainerNotes': TYPE_MULTILINE,
'Categories': TYPE_LIST,
'AntiFeatures': TYPE_STRINGMAP,
'RequiresRoot': TYPE_BOOL,
'AllowedAPKSigningKeys': TYPE_LIST,
'Builds': TYPE_BUILD,
'VercodeOperation': TYPE_LIST,

View File

@ -1433,7 +1433,7 @@ class UpdateTest(unittest.TestCase):
'NoSourceSince': '',
'Repo': '',
'RepoType': '',
'RequiresRoot': '',
'RequiresRoot': None,
'SourceCode': '',
'Summary': 'rocks.janicerand',
'Translation': '',