From: Mike Frysinger Date: Fri, 20 Mar 2015 18:28:11 +0000 (+0000) Subject: epatch_user: add an explicit notice of patches applied when die is called #543878... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1526e0e4b61dde5182919e1aecf5a2a04c328319;p=gentoo.git epatch_user: add an explicit notice of patches applied when die is called #543878 by Sergey S. Starikoff --- 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]