summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2006-12-18 11:51:06 +0000
committerAndres Loeh <kosmikus@gentoo.org>2006-12-18 11:51:06 +0000
commitcd8b971208d555661f5db97db7c184a8af8814df (patch)
tree3c094c85457d3a715b84f003099de6c57ae2b7fd /eclass
parentVersion bump of 1.4 SLOT, now also applies the patch from bug #126105 because... (diff)
downloadgentoo-2-cd8b971208d555661f5db97db7c184a8af8814df.tar.gz
gentoo-2-cd8b971208d555661f5db97db7c184a8af8814df.tar.bz2
gentoo-2-cd8b971208d555661f5db97db7c184a8af8814df.zip
removing basename call in global scope; calling darcs get with --partial by default
Diffstat (limited to 'eclass')
-rw-r--r--eclass/darcs.eclass7
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