diff options
author | Denis Pynkin <denis.pynkin@collabora.com> | 2019-05-21 01:35:25 +0300 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-08-01 02:06:47 +0000 |
commit | 0108e9ea4977ac730b5064b8198fe0ffd74df767 (patch) | |
tree | 558492822515c22316a04d06c2d6a8a521882813 /src/ostree/ot-admin-builtin-status.c | |
parent | e187f240fc399f8d9d769cec631e1d046e065066 (diff) | |
download | ostree-0108e9ea4977ac730b5064b8198fe0ffd74df767.tar.gz |
gpg: conditionally build GPG-related code for sign/verification
Do not build the code related to GPG sign and verification if
GPGME support is disabled.
Public functions return error 'G_IO_ERROR_NOT_SUPPORTED' in case if
gpg-related check is rquested.
Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Closes: #1889
Approved by: cgwalters
Diffstat (limited to 'src/ostree/ot-admin-builtin-status.c')
-rw-r--r-- | src/ostree/ot-admin-builtin-status.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ostree/ot-admin-builtin-status.c b/src/ostree/ot-admin-builtin-status.c index e625a927..c6c52382 100644 --- a/src/ostree/ot-admin-builtin-status.c +++ b/src/ostree/ot-admin-builtin-status.c @@ -35,6 +35,7 @@ static GOptionEntry options[] = { { NULL } }; +#ifndef OSTREE_DISABLE_GPGME static gboolean deployment_get_gpg_verify (OstreeDeployment *deployment, OstreeRepo *repo) @@ -61,6 +62,7 @@ deployment_get_gpg_verify (OstreeDeployment *deployment, return gpg_verify; } +#endif /* OSTREE_DISABLE_GPGME */ static gboolean @@ -136,6 +138,7 @@ deployment_print_status (OstreeSysroot *sysroot, g_print (" `- %s\n", source_title); } +#ifndef OSTREE_DISABLE_GPGME if (deployment_get_gpg_verify (deployment, repo)) { g_autoptr(GString) output_buffer = g_string_sized_new (256); @@ -168,6 +171,7 @@ deployment_print_status (OstreeSysroot *sysroot, g_print ("%s", output_buffer->str); } +#endif /* OSTREE_DISABLE_GPGME */ return TRUE; } |