diff options
author | Duncan Coutts <dcoutts@gentoo.org> | 2006-08-10 22:52:47 +0000 |
---|---|---|
committer | Duncan Coutts <dcoutts@gentoo.org> | 2006-08-10 22:52:47 +0000 |
commit | 23f6df62cd78db7c0de3ffdf20f06a457fc209a0 (patch) | |
tree | d2c67fa558a154c94ec284dde4b5650ff8582fb4 /eclass | |
parent | Make sure splash_util.static is linked against nptl libs. Should fix bug #140... (diff) | |
download | gentoo-2-23f6df62cd78db7c0de3ffdf20f06a457fc209a0.tar.gz gentoo-2-23f6df62cd78db7c0de3ffdf20f06a457fc209a0.tar.bz2 gentoo-2-23f6df62cd78db7c0de3ffdf20f06a457fc209a0.zip |
Use --set-scripts-executable by default for get/pull in darcs.eclass.
Fixes bug #136460.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/darcs.eclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass index d04a5b2a767b..237c74e68c45 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.1 2006/05/22 23:05:24 kosmikus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.2 2006/08/10 22:52:47 dcoutts Exp $ # # darcs eclass author: Andres Loeh <kosmikus@gentoo.org> # tla eclass author: <rphillips@gentoo.org> @@ -30,10 +30,13 @@ SRC_URI="" # darcs command to run [ -z "$EDARCS_DARCS_CMD" ] && EDARCS_DARCS_CMD="darcs" -# darcs commands with options +# darcs commands with command-specific options [ -z "$EDARCS_GET_CMD" ] && EDARCS_GET_CMD="get" [ -z "$EDARCS_UPDATE_CMD" ] && EDARCS_UPDATE_CMD="pull" +# options to pass to both the "get" and "update" commands +[ -z "$EDARCS_OPTIONS" ] && EDARCS_OPTIONS="--set-scripts-executable" + # Where the darcs repositories are stored/accessed [ -z "$EDARCS_TOP_DIR" ] && EDARCS_TOP_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/darcs-src" @@ -95,8 +98,8 @@ darcs_fetch() { fi # commands to run - local cmdget="${EDARCS_DARCS_CMD} ${EDARCS_GET_CMD} --repo-name=${EDARCS_LOCALREPO} ${EDARCS_REPOSITORY}" - local cmdupdate="${EDARCS_DARCS_CMD} ${EDARCS_UPDATE_CMD} --all ${EDARCS_REPOSITORY}" + local cmdget="${EDARCS_DARCS_CMD} ${EDARCS_GET_CMD} ${EDARCS_OPTIONS} --repo-name=${EDARCS_LOCALREPO} ${EDARCS_REPOSITORY}" + local cmdupdate="${EDARCS_DARCS_CMD} ${EDARCS_UPDATE_CMD} --all ${EDARCS_OPTIONS} ${EDARCS_REPOSITORY}" if [ "${mode}" == "get" ]; then einfo "Running $cmdget" @@ -117,6 +120,7 @@ darcs_src_unpack() { EDARCS_DARCS_CMD=$EDARCS_DARCS_CMD EDARCS_GET_CMD=$EDARCS_GET_CMD EDARCS_UPDATE_CMD=$EDARCS_UPDATE_CMD + EDARCS_OPTIONS=$EDARCS_OPTIONS EDARCS_TOP_DIR=$EDARCS_TOP_DIR EDARCS_REPOSITORY=$EDARCS_REPOSITORY EDARCS_LOCALREPO=$EDARCS_LOCALREPO |