[dak/master 03/10] "Format: 0.0" is now invalid
Signed-off-by: Chris Lamb <lamby@debian.org>
---
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 d6079a0..60da5bc 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 834a30b..802f0ff 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'))
--
1.6.3.3
Reply to: