diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2006-12-18 11:51:06 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2006-12-18 11:51:06 +0000 |
commit | 182dac42c543f6eebb91b89fe90675aa7bdb6530 (patch) | |
tree | 4f63b7795cc8f976e1c1d1e0a583e000acfd38f2 /eclass/darcs.eclass | |
parent | Version bump of 1.4 SLOT, now also applies the patch from bug #126105 because... (diff) | |
download | historical-182dac42c543f6eebb91b89fe90675aa7bdb6530.tar.gz historical-182dac42c543f6eebb91b89fe90675aa7bdb6530.tar.bz2 historical-182dac42c543f6eebb91b89fe90675aa7bdb6530.zip |
removing basename call in global scope; calling darcs get with --partial by default
Diffstat (limited to 'eclass/darcs.eclass')
-rw-r--r-- | eclass/darcs.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass index 237c74e68c45..1c7703102f3c 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.2 2006/08/10 22:52:47 dcoutts Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.3 2006/12/18 11:51:06 kosmikus Exp $ # # darcs eclass author: Andres Loeh <kosmikus@gentoo.org> # tla eclass author: <rphillips@gentoo.org> @@ -31,7 +31,7 @@ SRC_URI="" [ -z "$EDARCS_DARCS_CMD" ] && EDARCS_DARCS_CMD="darcs" # darcs commands with command-specific options -[ -z "$EDARCS_GET_CMD" ] && EDARCS_GET_CMD="get" +[ -z "$EDARCS_GET_CMD" ] && EDARCS_GET_CMD="get --partial" [ -z "$EDARCS_UPDATE_CMD" ] && EDARCS_UPDATE_CMD="pull" # options to pass to both the "get" and "update" commands @@ -46,7 +46,8 @@ SRC_URI="" # The local directory to store the repository (useful to ensure a # unique local name); relative to EDARCS_TOP_DIR [ -z "$EDARCS_LOCALREPO" ] && [ -n "$EDARCS_REPOSITORY" ] \ - && EDARCS_LOCALREPO="`basename $EDARCS_REPOSITORY`" + && EDARCS_LOCALREPO=${EDARCS_REPOSITORY%/} \ + && EDARCS_LOCALREPO=${EDARCS_LOCALREPO##*/} # EDARCS_CLEAN: set this to something to get a clean copy when updating # (removes the working directory, then uses $EDARCS_GET_CMD to |