]> git.decadent.org.uk Git - dak.git/commitdiff
tighten source format check for 1.0
authorHelmut Grohne <helmut@subdivi.de>
Thu, 15 May 2014 18:30:31 +0000 (20:30 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 15 May 2014 19:43:00 +0000 (21:43 +0200)
The regular expression used a ".", so it would accept "1-0" or even
"120" for source format 1.0.

Signed-off-by: Helmut Grohne <helmut@subdivi.de>
Signed-off-by: Helmut Grohne <helmut@subdivi.de>
daklib/srcformats.py

index 050691fe3b474f5b7d7feff10bbeac15dd3344f3..accccae6376fb0e6e57279d8500164d27eb6aee1 100644 (file)
@@ -76,7 +76,7 @@ class FormatOne(SourceFormat):
     __metaclass__ = SourceFormat
 
     name = '1.0'
-    format = r'1.0'
+    format = r'1\.0'
 
     requires = ()
     disallowed = ('debian_tar', 'more_orig_tar')