From 0ca7bf605846062823ebc6f3da8f8f084e2e27bf Mon Sep 17 00:00:00 2001 From: Andres Loeh Date: Sat, 6 Jan 2007 18:46:49 +0000 Subject: [PATCH] Restore shopt settings after changing them, fixing bug #160342. --- eclass/darcs.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 # tla eclass author: @@ -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}" -- 2.26.2