From: Raphael Hertzog Date: Sat, 28 Feb 2009 22:38:34 +0000 (+0100) Subject: Fix utils.build_file_list() for 3.x source packages X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c6e4df0a3357a7c08ff1cc0e94a7d978a0f1bdaf;p=dak.git Fix utils.build_file_list() for 3.x source packages Let utils.build_file_list() know that we understand newer formats like 3.0 (quilt) or 3.0 (native). Signed-off-by: Raphael Hertzog --- diff --git a/daklib/utils.py b/daklib/utils.py index 23c6318d..9f244963 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -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)):