From: Philipp Kern Date: Mon, 8 Sep 2008 20:06:03 +0000 (+0000) Subject: daklib/utils.py (build_file_list): ignore missing dsc format headers X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0242007ee819f8d21b63ea15488509f0ee8431b9;p=dak.git daklib/utils.py (build_file_list): ignore missing dsc format headers 2008-09-08 Philipp Kern * daklib/utils.py (build_file_list): do not die on very old dsc files without format header Signed-off-by: Philipp Kern --- diff --git a/ChangeLog b/ChangeLog index c1402201..914921ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,9 @@ before the sha1sum/sha256sum checks as they got seeked by md5sum + * daklib/utils.py (build_file_list): do not die on very + old dsc files without format header + 2008-09-07 Philipp Kern * daklib/utils.py (check_hash): try..except..finally only diff --git a/daklib/utils.py b/daklib/utils.py index 7979344d..fc1465d1 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -436,7 +436,10 @@ def build_file_list(changes, is_a_dsc=0, field="files", hashname="md5sum"): format = format[:2] if is_a_dsc: - if format != (1,0): + # 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): raise UnknownFormatError, "%s" % (changes.get("format","0.0")) else: if (format < (1,5) or format > (1,8)):