diff options
author | Lennart Kolmodin <kolmodin@gentoo.org> | 2007-06-17 21:33:57 +0000 |
---|---|---|
committer | Lennart Kolmodin <kolmodin@gentoo.org> | 2007-06-17 21:33:57 +0000 |
commit | e8a0e7ca189b9689280174745d9ae51038db6432 (patch) | |
tree | 3fe18ba9a9d2afcc4139ca65239b89bd6aa337a3 /eclass | |
parent | Stable on amd64 wrt bug 182399 (diff) | |
download | gentoo-2-e8a0e7ca189b9689280174745d9ae51038db6432.tar.gz gentoo-2-e8a0e7ca189b9689280174745d9ae51038db6432.tar.bz2 gentoo-2-e8a0e7ca189b9689280174745d9ae51038db6432.zip |
Don't change the PWD in darcs_src_unpack (eclass/darcs.eclass)
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/darcs.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass index 2c49bb0eba37..aaed4111609c 100644 --- a/eclass/darcs.eclass +++ b/eclass/darcs.eclass @@ -1,6 +1,6 @@ # Copyright 2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.4 2007/01/06 18:46:49 kosmikus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.5 2007/06/17 21:33:57 kolmodin Exp $ # # darcs eclass author: Andres Loeh <kosmikus@gentoo.org> # tla eclass author: <rphillips@gentoo.org> @@ -83,6 +83,7 @@ darcs_fetch() { # in case EDARCS_DARCS_DIR is a symlink to a dir, get the real # dir's path, otherwise addwrite() doesn't work. + pushd . cd -P "$EDARCS_TOP_DIR" > /dev/null EDARCS_TOP_DIR="`/bin/pwd`" @@ -110,6 +111,7 @@ darcs_fetch() { eval $cmdupdate || die "darcs update command failed" fi + popd } |