summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-04-12 08:40:46 +0000
committerUlrich Müller <ulm@gentoo.org>2008-04-12 08:40:46 +0000
commitb8bdacb60cea44b84366260f8961a25f456d1240 (patch)
tree1d17f887d5c2c4dd09e94c6f9919b563d7b43820 /eclass/elisp-common.eclass
parentSupport bash arrays in the PATCHES variable (diff)
downloadgentoo-2-b8bdacb60cea44b84366260f8961a25f456d1240.tar.gz
gentoo-2-b8bdacb60cea44b84366260f8961a25f456d1240.tar.bz2
gentoo-2-b8bdacb60cea44b84366260f8961a25f456d1240.zip
Create temporary directory safely.
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 4654e75d23bb..ee4db8311a27 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.38 2008/04/04 18:11:28 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.39 2008/04/12 08:40:46 ulm Exp $
#
# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
@@ -289,7 +289,7 @@ elisp-site-regen() {
local i sf line obsolete
local -a sflist
# Work around Paludis borkage: variable T is empty in pkg_postrm
- local tmpdir=${T:-/tmp}
+ local tmpdir=${T:-$(mktemp -d)}
if [ ! -d "${ROOT}${SITELISP}" ]; then
eerror "Directory ${SITELISP} does not exist"