From: Colin Walters Date: Thu, 4 Jan 2024 19:02:08 +0000 (-0500) Subject: status: Add an option to skip signature verification X-Git-Tag: archive/raspbian/2024.8-1+rpi1^2~7^2~7^2~7^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e95109b3ed7e9c3ce5dfbe4840a6f63305c84891;p=ostree.git status: Add an option to skip signature verification Since it's really expensive in some cases. --- diff --git a/src/ostree/ot-admin-builtin-status.c b/src/ostree/ot-admin-builtin-status.c index 85049280..bf94843f 100644 --- a/src/ostree/ot-admin-builtin-status.c +++ b/src/ostree/ot-admin-builtin-status.c @@ -29,10 +29,14 @@ #include static gboolean opt_verify; - -static GOptionEntry options[] = { { "verify", 'V', 0, G_OPTION_ARG_NONE, &opt_verify, - "Print the commit verification status", NULL }, - { NULL } }; +static gboolean opt_skip_signatures; + +static GOptionEntry options[] + = { { "verify", 'V', 0, G_OPTION_ARG_NONE, &opt_verify, "Print the commit verification status", + NULL }, + { "skip-signatures", 'S', 0, G_OPTION_ARG_NONE, &opt_skip_signatures, + "Print the commit verification status", NULL }, + { NULL } }; static gboolean deployment_print_status (OstreeSysroot *sysroot, OstreeRepo *repo, OstreeDeployment *deployment, gboolean is_booted, gboolean is_pending, gboolean is_rollback, @@ -116,7 +120,7 @@ deployment_print_status (OstreeSysroot *sysroot, OstreeRepo *repo, OstreeDeploym gboolean gpg_verify = FALSE; if (remote) (void)ostree_repo_remote_get_gpg_verify (repo, remote, &gpg_verify, NULL); - if (!opt_verify && gpg_verify) + if (!opt_skip_signatures && !opt_verify && gpg_verify) { g_assert (remote); g_autoptr (GString) output_buffer = g_string_sized_new (256);