main: delete duplicate GPG sig printing function
We already have a `rpmostree_print_signatures` function that the `status` command uses to print GPG signatures. Closes: #803 Approved by: cgwalters
This commit is contained in:
parent
e852bf33d6
commit
fa62981693
@ -202,32 +202,6 @@ rpmostree_option_context_parse (GOptionContext *context,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
rpmostree_print_gpg_verify_result (OstreeGpgVerifyResult *result)
|
||||
{
|
||||
GString *buffer;
|
||||
guint n_sigs, ii;
|
||||
|
||||
n_sigs = ostree_gpg_verify_result_count_all (result);
|
||||
|
||||
/* XXX If we ever add internationalization, use ngettext() here. */
|
||||
g_print ("GPG: Verification enabled, found %u signature%s:\n",
|
||||
n_sigs, n_sigs == 1 ? "" : "s");
|
||||
|
||||
buffer = g_string_sized_new (256);
|
||||
|
||||
for (ii = 0; ii < n_sigs; ii++)
|
||||
{
|
||||
g_string_append_c (buffer, '\n');
|
||||
ostree_gpg_verify_result_describe (result, ii, buffer, " ",
|
||||
OSTREE_GPG_SIGNATURE_FORMAT_DEFAULT);
|
||||
}
|
||||
|
||||
g_print ("%s\n", buffer->str);
|
||||
g_string_free (buffer, TRUE);
|
||||
}
|
||||
|
||||
|
||||
static RpmOstreeCommand *
|
||||
lookup_command (const char *name)
|
||||
{
|
||||
|
@ -94,7 +94,6 @@ rpmostree_option_context_parse (GOptionContext *context,
|
||||
GPid *out_peer_pid,
|
||||
GError **error);
|
||||
|
||||
void rpmostree_print_gpg_verify_result (OstreeGpgVerifyResult *result);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user