1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 08:20:11 +02:00

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, 'MaintainerNotes': TYPE_MULTILINE,
'Categories': TYPE_LIST, 'Categories': TYPE_LIST,
'AntiFeatures': TYPE_STRINGMAP, 'AntiFeatures': TYPE_STRINGMAP,
'RequiresRoot': TYPE_BOOL,
'AllowedAPKSigningKeys': TYPE_LIST, 'AllowedAPKSigningKeys': TYPE_LIST,
'Builds': TYPE_BUILD, 'Builds': TYPE_BUILD,
'VercodeOperation': TYPE_LIST, 'VercodeOperation': TYPE_LIST,

View File

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