From 39f4b1ccd89b7ac748b2ac42c77e0002b2ad030c Mon Sep 17 00:00:00 2001 From: Michal Maruska Date: Wed, 27 Oct 2021 09:33:30 +0200 Subject: [PATCH] Abort package installation if alternatives fail to install --- mk/alternatives.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/alternatives.mk b/mk/alternatives.mk index 9e4d8da0931a..fde3a091a0c5 100644 --- a/mk/alternatives.mk +++ b/mk/alternatives.mk @@ -54,7 +54,7 @@ ${WRKDIR}/.altinstall: ${ALTERNATIVES_SRC} ${SED} ${FILES_SUBST_SED} <${ALTERNATIVES_SRC}; \ ${ECHO} 'EOF'; \ ${ECHO} 'if ${TEST} -x ${PKG_ALTERNATIVES}; then'; \ - ${ECHO} '${PKG_ALTERNATIVES} -gs register ./+ALTERNATIVES'; \ + ${ECHO} '${PKG_ALTERNATIVES} -gs register ./+ALTERNATIVES || exit 1'; \ ${ECHO} 'fi'; \ ${ECHO} 'fi'; \ } >${WRKDIR}/.altinstall