From 01cd7e04d54a175c07fa052be1e8f5dd682fe78c Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Wed, 18 May 2016 22:11:00 +0200 Subject: [PATCH] dep11: Properly validate Time and Priority fields --- scripts/debian/dep11-basic-validate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/debian/dep11-basic-validate.py b/scripts/debian/dep11-basic-validate.py index 467b4e21..03cd80c0 100755 --- a/scripts/debian/dep11-basic-validate.py +++ b/scripts/debian/dep11-basic-validate.py @@ -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({ -- 2.39.5