]> git.decadent.org.uk Git - dak.git/commitdiff
Merge commit 'lamby/master' into merge
authorJoerg Jaspert <joerg@debian.org>
Wed, 28 Oct 2009 20:22:08 +0000 (21:22 +0100)
committerJoerg Jaspert <joerg@debian.org>
Wed, 28 Oct 2009 20:22:08 +0000 (21:22 +0100)
* commit 'lamby/master':
  build_file_list(changes, ..) can also be dsc information \o/

Signed-off-by: Joerg Jaspert <joerg@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"