From 834e62826de874a0de2cd62cc932623a57d2b99a Mon Sep 17 00:00:00 2001 From: James Antill Date: Tue, 13 Jan 2015 23:37:25 -0500 Subject: [PATCH] compose: Add documentation json config. for nodocs yum/rpm transaction flag --- src/rpmostree-compose-builtin-tree.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/rpmostree-compose-builtin-tree.c b/src/rpmostree-compose-builtin-tree.c index 5e7ce07a..e2aeef15 100644 --- a/src/rpmostree-compose-builtin-tree.c +++ b/src/rpmostree-compose-builtin-tree.c @@ -312,6 +312,19 @@ yum_context_new (RpmOstreeTreeComposeContext *self, g_string_free (opt, FALSE); } + if (TRUE) + { + gboolean docs = TRUE; + + if (!_rpmostree_jsonutil_object_get_optional_boolean_member (treedata, + "documentation", + &docs, + error)) + goto out; + if (!docs) + g_ptr_array_add (yum_argv, g_strdup ("--setopt=tsflags=nodocs")); + } + g_ptr_array_add (yum_argv, g_strconcat ("--installroot=", gs_file_get_path_cached (yumroot), NULL));