From: Chris Lamb Date: Wed, 28 Oct 2009 11:06:14 +0000 (+0000) Subject: "Format: 0.0" is now invalid X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4587ac614fbf2fcdb97cdf2752da2c3ce25c7398;p=dak.git "Format: 0.0" is now invalid Signed-off-by: Chris Lamb --- diff --git a/daklib/srcformats.py b/daklib/srcformats.py index d6079a0f..60da5bc0 100644 --- a/daklib/srcformats.py +++ b/daklib/srcformats.py @@ -42,9 +42,7 @@ class SourceFormat(type): format = format[:2] if is_a_dsc: - # format = (0,0) are missing format headers of which we still - # have some in the archive. - if format != (1,0) and format != (0,0) and \ + if format != (1,0) and \ format != (3,0,"quilt") and format != (3,0,"native"): raise UnknownFormatError, txt else: diff --git a/tests/test_srcformats.py b/tests/test_srcformats.py index 834a30b4..802f0ffb 100755 --- a/tests/test_srcformats.py +++ b/tests/test_srcformats.py @@ -141,7 +141,7 @@ class ParseSourceFormat(ParseFormat): self.assertFormat('1.0', (1, 0)) def testZero(self): - self.assertFormat('0.0', (0, 0)) + self.assertInvalidFormat('0.0') def testNative(self): self.assertFormat('3.0 (native)', (3, 0, 'native'))