[libhif] Update to support "documentation" flag

This commit is contained in:
Colin Walters 2015-01-16 17:23:17 -05:00
parent 5f61945302
commit 9c8dcbe98c

View File

@ -279,6 +279,19 @@ install_packages_in_root (RpmOstreeTreeComposeContext *self,
}
}
{ gboolean docs = TRUE;
if (!_rpmostree_jsonutil_object_get_optional_boolean_member (treedata,
"documentation",
&docs,
error))
goto out;
if (!docs)
hif_transaction_set_flags (hif_context_get_transaction (hifctx),
HIF_TRANSACTION_FLAG_NODOCS);
}
/* --- Downloading metadata --- */
{ _cleanup_rpmostree_console_progress_ G_GNUC_UNUSED gpointer dummy;
gs_unref_object HifState *hifstate = hif_state_new ();