summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-11-04 21:36:36 +0000
committerUlrich Müller <ulm@gentoo.org>2013-11-04 21:36:36 +0000
commite6a9ff92f5f1fb55b3b03fa289d6657a5cd6a53d (patch)
treea96299916d635c3503bf88b0339fe8b35c97f2eb /eclass/elisp-common.eclass
parentStable for ppc, wrt bug #488536 (diff)
downloadhistorical-e6a9ff92f5f1fb55b3b03fa289d6657a5cd6a53d.tar.gz
historical-e6a9ff92f5f1fb55b3b03fa289d6657a5cd6a53d.tar.bz2
historical-e6a9ff92f5f1fb55b3b03fa289d6657a5cd6a53d.zip
Don't create site-gentoo.el in postrm phase.
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 015cac1b5c6e..c4215125b4fe 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.86 2013/09/04 19:16:40 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.87 2013/11/04 21:36:36 ulm Exp $
#
# @ECLASS: elisp-common.eclass
# @MAINTAINER:
@@ -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 \