From 1526e0e4b61dde5182919e1aecf5a2a04c328319 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 20 Mar 2015 18:28:11 +0000 Subject: [PATCH] epatch_user: add an explicit notice of patches applied when die is called #543878 by Sergey S. Starikoff --- eclass/eutils.eclass | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index a291babd09a4..daef9a81522d 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.443 2015/03/20 18:22:05 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.444 2015/03/20 18:28:11 vapier Exp $ # @ECLASS: eutils.eclass # @MAINTAINER: @@ -709,12 +709,21 @@ epatch_user() { EPATCH_MULTI_MSG="Applying user patches from ${EPATCH_SOURCE} ..." \ epatch echo "${EPATCH_SOURCE}" > "${applied}" + has epatch_user_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" epatch_user_death_notice" return 0 fi done echo "none" > "${applied}" return 1 } +# @FUNCTION: epatch_user_death_notice +# @INTERNAL +# @DESCRIPTION: +# Include an explicit notice in the die message itself that user patches were +# applied to this build. +epatch_user_death_notice() { + ewarn "!!! User patches were applied to this build!" +} # @FUNCTION: emktemp # @USAGE: [temp dir] -- 2.26.2