From 453667e41ebea6a022920daec75baa1c1e2f066a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 23 Dec 2013 14:22:43 -0500 Subject: [PATCH] Add --gpg-sign argument Can't quite use it yet, but will be able to with the next OSTree release. --- src/rpmostree.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rpmostree.py b/src/rpmostree.py index 5c7efe13..d48b0798 100755 --- a/src/rpmostree.py +++ b/src/rpmostree.py @@ -268,6 +268,10 @@ def main(): action='store', default=None, help="Stop at given phase") + parser.add_option('', "--gpg-sign", + action='store', + default=None, + help="Sign commits using given GPG key ID") parser.add_option('', "--os", action='store', dest='os', default=None, @@ -402,6 +406,8 @@ def main(): [success, parent] = repo.resolve_rev(ref, True) [success, tree] = repo.write_mtree(mtree, None) [success, commit] = repo.write_commit(parent, '', commit_message, None, tree, None) + if opts.gpg_sign is not None: + repo.sign_commit(commit, opts.gpg_sign, None, None) repo.transaction_set_ref(None, ref, commit) repo.commit_transaction(None)