]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/utils.py
Fix utils.build_file_list() for 3.x source packages
[dak.git] / daklib / utils.py
index 23c6318dfaa3ec9a0c9d800a77dc2253b4444895..9f244963dc7cdf8e6ac29e24b350197e11ac240e 100755 (executable)
@@ -536,10 +536,10 @@ def build_file_list(changes, is_a_dsc=0, field="files", hashname="md5sum"):
         format = format[:2]
 
     if is_a_dsc:
-        # format = (1,0) are the only formats we currently accept,
         # format = (0,0) are missing format headers of which we still
         # have some in the archive.
-        if format != (1,0) and format != (0,0):
+        if format != (1,0) and format != (0,0) and \
+           format != (3,0,"quilt") and format != (3,0,"native"):
             raise UnknownFormatError, "%s" % (changes.get("format","0.0"))
     else:
         if (format < (1,5) or format > (1,8)):