From: Mark Hymers Date: Fri, 29 Jul 2011 20:00:35 +0000 (+0100) Subject: Add signingkey option to suite add command X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab584d2bc3b3eae4b454c94f72f0ab28d592c6f9;p=dak Add signingkey option to suite add command Signed-off-by: Mark Hymers --- diff --git a/dak/admin.py b/dak/admin.py index 2183c229..4e3dff26 100755 --- a/dak/admin.py +++ b/dak/admin.py @@ -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: