]> git.decadent.org.uk Git - dak.git/commitdiff
suite add: set version to NULL when an empty string is given
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 9 Apr 2015 19:04:38 +0000 (21:04 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 9 Apr 2015 19:04:38 +0000 (21:04 +0200)
dak/admin.py

index 07e60dddfdfad2b3b63264428dddf0e4988884c1..66113b94cb40c0ad90d0a04748c42dc6368b1297 100755 (executable)
@@ -322,6 +322,9 @@ def __suite_add(d, args, addallarches=False):
     version = args[3]
     rest = args[3:]
 
+    if len(version) == 0:
+        version = None
+
     def get_field(field):
         for varval in args:
             if varval.startswith(field + '='):