]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/utils.py
Split parsing of "Format:" string and validation of it.
[dak.git] / daklib / utils.py
index 5021483fcb0c901a2154b2a67f8ca7e408f03724..8362c57fd6ce14d8d1ab77bf1b2ac21f65e36673 100755 (executable)
@@ -523,7 +523,8 @@ def build_file_list(changes, is_a_dsc=0, field="files", hashname="md5sum"):
     if not changes.has_key(field):
         raise NoFilesFieldError
 
-    format = SourceFormat.parse_format(changes.get["format"], field, is_a_dsc)
+    format = SourceFormat.parse_format(changes.get["format"])
+    SourceFormat.validate_format(format, is_a_dsc=False, field='files')
 
     includes_section = (not is_a_dsc) and field == "files"