summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2007-01-06 18:46:49 +0000
committerAndres Loeh <kosmikus@gentoo.org>2007-01-06 18:46:49 +0000
commit2af74d5ce1f9b875aacb391218fb631ae139d746 (patch)
tree5b5b794722619970c533b12945a1a7cf78c050e3 /eclass/darcs.eclass
parentFixed broken encoding in ChangeLog (diff)
downloadgentoo-2-2af74d5ce1f9b875aacb391218fb631ae139d746.tar.gz
gentoo-2-2af74d5ce1f9b875aacb391218fb631ae139d746.tar.bz2
gentoo-2-2af74d5ce1f9b875aacb391218fb631ae139d746.zip
Restore shopt settings after changing them, fixing bug #160342.
Diffstat (limited to 'eclass/darcs.eclass')
-rw-r--r--eclass/darcs.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass
index 1c7703102f3c..2c49bb0eba37 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.3 2006/12/18 11:51:06 kosmikus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.4 2007/01/06 18:46:49 kosmikus Exp $
#
# darcs eclass author: Andres Loeh <kosmikus@gentoo.org>
# tla eclass author: <rphillips@gentoo.org>
@@ -114,6 +114,7 @@ darcs_fetch() {
darcs_src_unpack() {
+ local EDARCS_SHOPT
debug-print-function $FUNCNAME $*
@@ -137,8 +138,10 @@ darcs_src_unpack() {
# Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside.
mkdir -p "${WORKDIR}/${P}"
+ EDARCS_SHOPT=$(shopt -p dotglob)
shopt -s dotglob # get any dotfiles too.
cp -Rf "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}"
+ eval ${EDARCS_SHOPT} # reset shopt
einfo "Darcs repository contents are now in ${WORKDIR}/${P}"