Merge pull request #150 from cgwalters/hif-fatal-source-unavail

compose: Make use of hif_source_set_required()
This commit is contained in:
Colin Walters 2015-05-27 16:01:15 -04:00
commit 4515a0f07b
2 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,11 @@ AC_TRY_COMPILE([#include <stdlib.h>
[AC_MSG_RESULT([yes]); BUILDOPT_HAWKEY_SACK_CREATE2=1])
AC_DEFINE_UNQUOTED(BUILDOPT_HAWKEY_SACK_CREATE2, $BUILDOPT_HAWKEY_SACK_CREATE2, [Hawkey ABI change])
save_LIBS=$LIBS
LIBS=$PKGDEP_RPMOSTREE_LIBS
AC_CHECK_FUNCS(hif_source_set_required)
LIBS=$save_LIBS
AC_PATH_PROG([XSLTPROC], [xsltproc])
GLIB_TESTS

View File

@ -284,6 +284,10 @@ install_packages_in_root (RpmOstreeTreeComposeContext *self,
hif_source_set_enabled (src, HIF_SOURCE_ENABLED_NONE);
else
hif_source_set_enabled (src, HIF_SOURCE_ENABLED_PACKAGES);
#ifdef HAVE_HIF_SOURCE_SET_REQUIRED
hif_source_set_required (src, TRUE);
#endif
}
}