compose: Add documentation json config. for nodocs yum/rpm transaction flag
This commit is contained in:
parent
2cb6c08254
commit
834e62826d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user