From 67cc527bcbe97deca65f3ee4ce300ac9d55f234a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 22 Nov 2013 00:06:53 +0100 Subject: [PATCH] Add repo types to metadata checks --- fdroidserver/metadata.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index 3e36fe8f..161a7194 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -92,9 +92,9 @@ valuetypes = { [ "Bitcoin" ], [ ]), - 'archive' : FieldType("Archive Policy", - r'^[0-9]+ versions$', None, - [ "Archive Policy" ], + 'Bool' : FieldType("Boolean", + ['Yes', 'No'], None, + [ "Requires Root" ], [ ]), 'bool' : FieldType("Boolean", @@ -103,9 +103,14 @@ valuetypes = { [ 'submodules', 'oldsdkloc', 'forceversion', 'forcevercode', 'fixtrans', 'fixapos', 'novcheck' ]), - 'Bool' : FieldType("Boolean", - ['Yes', 'No'], None, - [ "Requires Root" ], + 'Repo Type' : FieldType("Repo Type", + [ 'git', 'git-svn', 'svn', 'hg', 'bzr', 'srclib' ], None, + [ "Repo Type" ], + [ ]), + + 'archive' : FieldType("Archive Policy", + r'^[0-9]+ versions$', None, + [ "Archive Policy" ], [ ]), 'antifeatures' : FieldType("Anti-Feature",