summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-20 18:28:11 +0000
committerMike Frysinger <vapier@gentoo.org>2015-03-20 18:28:11 +0000
commitc2dc8625eb3750289d9c0acb6ad56988f7e8af9f (patch)
tree72affd3f758d1a780d5575c51b1725b0d76a3cf8 /eclass/eutils.eclass
parentepatch: include `patch --version` output in the failure log (diff)
downloadgentoo-2-c2dc8625eb3750289d9c0acb6ad56988f7e8af9f.tar.gz
gentoo-2-c2dc8625eb3750289d9c0acb6ad56988f7e8af9f.tar.bz2
gentoo-2-c2dc8625eb3750289d9c0acb6ad56988f7e8af9f.zip
epatch_user: add an explicit notice of patches applied when die is called #543878 by Sergey S. Starikoff
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass11
1 files changed, 10 insertions, 1 deletions
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]