summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-10-31 16:08:37 +0100
committerUlrich Müller <ulm@gentoo.org>2013-10-31 16:08:37 +0100
commit99251e279a016d3fd7e00e76194374d09bc48308 (patch)
tree25955e13bbb376bea8fda5a2403ecc3f3730ab4a /eclass
parentCreate site-gentoo.el in preinst phase and have it belong to this package. (diff)
downloademacs-99251e279a016d3fd7e00e76194374d09bc48308.tar.gz
emacs-99251e279a016d3fd7e00e76194374d09bc48308.tar.bz2
emacs-99251e279a016d3fd7e00e76194374d09bc48308.zip
Don't create site-gentoo.el in postrm phase.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog3
-rw-r--r--eclass/elisp-common.eclass5
2 files changed, 8 insertions, 0 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index d443777..3bdade8 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -778,6 +778,9 @@
Copyright 2002-2012 Gentoo Foundation
Distributed under the terms of the GNU General Public License v2
+ 31 Oct 2013; Ulrich Müller <ulm@gentoo.org> elisp-common.eclass:
+ Don't create site-gentoo.el in postrm phase.
+
04 Sep 2013; Ulrich Müller <ulm@gentoo.org> elisp-common.eclass:
Add proper @CODE tags in comments.
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 8085e56..d1e7fbb 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -362,6 +362,11 @@ elisp-site-regen() {
return 1
fi
+ if [[ ${EBUILD_PHASE} = *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then
+ ewarn "Refusing to create site-gentoo.el in ${EBUILD_PHASE} phase."
+ return 0
+ fi
+
ebegin "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE})"
for sf in "${sitelisp}"/[0-9][0-9]*-gentoo.el \