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

Add repo types to metadata checks

This commit is contained in:
Daniel Martí 2013-11-22 00:06:53 +01:00
parent 42705fc2d2
commit 67cc527bcb

View File

@ -92,9 +92,9 @@ valuetypes = {
[ "Bitcoin" ], [ "Bitcoin" ],
[ ]), [ ]),
'archive' : FieldType("Archive Policy", 'Bool' : FieldType("Boolean",
r'^[0-9]+ versions$', None, ['Yes', 'No'], None,
[ "Archive Policy" ], [ "Requires Root" ],
[ ]), [ ]),
'bool' : FieldType("Boolean", 'bool' : FieldType("Boolean",
@ -103,9 +103,14 @@ valuetypes = {
[ 'submodules', 'oldsdkloc', 'forceversion', 'forcevercode', [ 'submodules', 'oldsdkloc', 'forceversion', 'forcevercode',
'fixtrans', 'fixapos', 'novcheck' ]), 'fixtrans', 'fixapos', 'novcheck' ]),
'Bool' : FieldType("Boolean", 'Repo Type' : FieldType("Repo Type",
['Yes', 'No'], None, [ 'git', 'git-svn', 'svn', 'hg', 'bzr', 'srclib' ], None,
[ "Requires Root" ], [ "Repo Type" ],
[ ]),
'archive' : FieldType("Archive Policy",
r'^[0-9]+ versions$', None,
[ "Archive Policy" ],
[ ]), [ ]),
'antifeatures' : FieldType("Anti-Feature", 'antifeatures' : FieldType("Anti-Feature",