epatch_user: add an explicit notice of patches applied when die is called #543878...
authorMike Frysinger <vapier@gentoo.org>
Fri, 20 Mar 2015 18:28:11 +0000 (18:28 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 20 Mar 2015 18:28:11 +0000 (18:28 +0000)
eclass/eutils.eclass

index a291babd09a418124cbb89351b5ffc03df94fad2..daef9a81522d064562499383659c2d831ccdc76c 100644 (file)
@@ -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]