]> git.decadent.org.uk Git - dak.git/commitdiff
build_file_list(changes, ..) can also be dsc information \o/
authorChris Lamb <lamby@debian.org>
Wed, 28 Oct 2009 20:21:37 +0000 (20:21 +0000)
committerChris Lamb <lamby@debian.org>
Wed, 28 Oct 2009 20:21:37 +0000 (20:21 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/utils.py

index b0b71c0169d413e32d5a6c0b1aa009dd76f4211d..67ecc11a6147b31a31acc8057046fe7a2b82fc8f 100755 (executable)
@@ -529,7 +529,8 @@ def build_file_list(changes, is_a_dsc=0, field="files", hashname="md5sum"):
         raise NoFilesFieldError
 
     # Validate .changes Format: field
-    validate_changes_format(parse_format(changes['format']), field)
+    if not is_a_dsc:
+        validate_changes_format(parse_format(changes['format']), field)
 
     includes_section = (not is_a_dsc) and field == "files"