compose: Add documentation json config. for nodocs yum/rpm transaction flag

This commit is contained in:
James Antill 2015-01-13 23:37:25 -05:00
parent 2cb6c08254
commit 834e62826d

View File

@ -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));