]> git.decadent.org.uk Git - dak.git/commitdiff
dep11: Properly validate Time and Priority fields
authorMatthias Klumpp <matthias@tenstral.net>
Wed, 18 May 2016 20:11:00 +0000 (22:11 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 20 May 2016 07:03:57 +0000 (09:03 +0200)
scripts/debian/dep11-basic-validate.py

index 467b4e21c4abc8f93d56e1893088a5c1d79ed860..03cd80c0c2b2845756483043fdb91b5f6ac1348b 100755 (executable)
@@ -28,8 +28,8 @@ schema_header = Schema({
     Required('Origin'): All(str, Length(min=1)),
     Required('Version'): All(str, Match(r'(\d+\.?)+$'), msg="Must be a valid version number"),
     Required('MediaBaseUrl'): All(str, Url()),
-    'Time': All(str, str),
-    'Priority': All(str, int),
+    'Time': All(str),
+    'Priority': All(int),
 })
 
 schema_translated = Schema({