From 4587ac614fbf2fcdb97cdf2752da2c3ce25c7398 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Wed, 28 Oct 2009 11:06:14 +0000 Subject: [PATCH] "Format: 0.0" is now invalid Signed-off-by: Chris Lamb --- daklib/srcformats.py | 4 +--- tests/test_srcformats.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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')) -- 2.39.5