summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-03-29 20:27:19 +0000
committerUlrich Müller <ulm@gentoo.org>2009-03-29 20:27:19 +0000
commited2b787762108c7fbf0dddde600e21fb5cfd957f (patch)
tree24aab4c311c8ae5ce89296a792b31e7583f50d35 /eclass
parentclean up (diff)
downloadgentoo-2-ed2b787762108c7fbf0dddde600e21fb5cfd957f.tar.gz
gentoo-2-ed2b787762108c7fbf0dddde600e21fb5cfd957f.tar.bz2
gentoo-2-ed2b787762108c7fbf0dddde600e21fb5cfd957f.zip
Change directory to S in src_unpack.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/elisp.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass
index 8b32d514a6c0..cbff03ed8fa7 100644
--- a/eclass/elisp.eclass
+++ b/eclass/elisp.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.40 2009/03/29 19:49:45 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.41 2009/03/29 20:27:19 ulm Exp $
#
# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
@@ -83,7 +83,8 @@ elisp_src_unpack() {
fi
case "${EAPI:-0}" in
- 0|1) elisp_src_prepare ;;
+ 0|1) [ -d "${S}" ] && cd "${S}"
+ elisp_src_prepare ;;
esac
}