vapier      15/03/20 18:28:11

  Modified:             eutils.eclass
  Log:
  epatch_user: add an explicit notice of patches applied when die is called 
#543878 by Sergey S. Starikoff

Revision  Changes    Path
1.444                eclass/eutils.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?rev=1.444&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?rev=1.444&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?r1=1.443&r2=1.444

Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.443
retrieving revision 1.444
diff -u -r1.443 -r1.444
--- eutils.eclass       20 Mar 2015 18:22:05 -0000      1.443
+++ eutils.eclass       20 Mar 2015 18:28:11 -0000      1.444
@@ -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_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]




Reply via email to