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 | ea9594afa5b5ab8c5216c354f5dbead0794cfa37 (patch) | |
tree | abcda6bbddcfce929cd2601cc2d73f398dad15d1 /eclass | |
parent | Stable on amd64 wrt bug 182399 (diff) | |
download | historical-ea9594afa5b5ab8c5216c354f5dbead0794cfa37.tar.gz historical-ea9594afa5b5ab8c5216c354f5dbead0794cfa37.tar.bz2 historical-ea9594afa5b5ab8c5216c354f5dbead0794cfa37.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 } |