From: Matthias Klumpp Date: Wed, 18 May 2016 20:11:00 +0000 (+0200) Subject: dep11: Properly validate Time and Priority fields X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=01cd7e04d54a175c07fa052be1e8f5dd682fe78c;p=dak.git dep11: Properly validate Time and Priority fields --- 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({