]> git.decadent.org.uk Git - dak.git/commitdiff
Add signingkey option to suite add command
authorMark Hymers <mhy@debian.org>
Fri, 29 Jul 2011 20:00:35 +0000 (21:00 +0100)
committerMark Hymers <mhy@debian.org>
Fri, 29 Jul 2011 20:00:35 +0000 (21:00 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/admin.py

index 2183c2293b2ad4c039d1658362b1f72ad318c22b..4e3dff26110d003f353c38f167bfef634c29a62d 100755 (executable)
@@ -80,8 +80,10 @@ Perform administrative work on the dak database.
      s show SUITE           show config details for a suite
      s add SUITE VERSION [ label=LABEL ] [ description=DESCRIPTION ]
                          [ origin=ORIGIN ] [ codename=CODENAME ]
-                            add suite SUITE, version VERSION. label,
-                            description, origin and codename are optional.
+                         [ signingkey=SIGNINGKEY ]
+                            add suite SUITE, version VERSION.
+                            label, description, origin, codename
+                            and signingkey are optional.
 
      s add-all-arches SUITE VERSION... as "s add" but adds suite-architecture
                             relationships for all architectures
@@ -219,6 +221,9 @@ def __suite_add(d, args, addallarches=False):
             suite.description = get_field('description')
             suite.origin = get_field('origin')
             suite.codename = get_field('codename')
+            signingkey = get_field('signingkey')
+            if signingkey is not None:
+                suite.signingkeys = [signingkey.upper()]
             s.add(suite)
             s.flush()
         except IntegrityError, e: