Merge pull request #150 from cgwalters/hif-fatal-source-unavail
compose: Make use of hif_source_set_required()
This commit is contained in:
commit
4515a0f07b
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user