projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac8638f
)
status: Fix build without GPGME
author
Eric Curtin
<ecurtin@redhat.com>
Fri, 5 Jan 2024 14:39:46 +0000
(14:39 +0000)
committer
Eric Curtin
<ecurtin@redhat.com>
Fri, 5 Jan 2024 14:52:11 +0000
(14:52 +0000)
If OSTREE_DISABLE_GPGME is not built in set remote to NULL.
The ostree_repo_signature_verify_commit_data path is irrelevant in the
no gpg case anyway. Having this set as NULL ensures an error gets
thrown early.
Signed-off-by: Eric Curtin <ecurtin@redhat.com>
src/ostree/ot-admin-builtin-status.c
patch
|
blob
|
history
diff --git
a/src/ostree/ot-admin-builtin-status.c
b/src/ostree/ot-admin-builtin-status.c
index bf94843f26be0bbe69e7b532a4b05d8c99b6d377..c910340e499408e92c755806e89b86cf1331e637 100644
(file)
--- a/
src/ostree/ot-admin-builtin-status.c
+++ b/
src/ostree/ot-admin-builtin-status.c
@@
-152,6
+152,8
@@
deployment_print_status (OstreeSysroot *sysroot, OstreeRepo *repo, OstreeDeploym
g_print ("%s", output_buffer->str);
}
+#else
+ g_autofree char *remote = NULL;
#endif /* OSTREE_DISABLE_GPGME */
if (opt_verify)
{