diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2014-05-22 16:30:59 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2014-05-22 16:30:59 +0000 |
commit | 62b4e1243cc2f619fd40bddfb3ee0922af25d11b (patch) | |
tree | 7baf280e9c5a0aff24bd2db50b728933669727df /eclass/darcs.eclass | |
parent | mask test useflag for metasploit (diff) | |
download | gentoo-2-62b4e1243cc2f619fd40bddfb3ee0922af25d11b.tar.gz gentoo-2-62b4e1243cc2f619fd40bddfb3ee0922af25d11b.tar.bz2 gentoo-2-62b4e1243cc2f619fd40bddfb3ee0922af25d11b.zip |
store darcs cache in DISTDIR
Diffstat (limited to 'eclass/darcs.eclass')
-rw-r--r-- | eclass/darcs.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass index 2d05a8ad749d..af382a60c281 100644 --- a/eclass/darcs.eclass +++ b/eclass/darcs.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.16 2012/06/08 03:39:50 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.17 2014/05/22 16:30:59 slyfox Exp $ # @ECLASS: darcs.eclass # @MAINTAINER: @@ -88,7 +88,7 @@ DEPEND="dev-vcs/darcs # @DESCRIPTION: # Internal function to determine amount of patches in repository. darcs_patchcount() { - set -- $(${EDARCS_DARCS_CMD} show repo | grep "Num Patches") + set -- $(HOME="${EDARCS_TOP_DIR}" ${EDARCS_DARCS_CMD} show repo | grep "Num Patches") # handle string like: " Num Patches: 3860" echo ${3} } @@ -148,12 +148,12 @@ darcs_fetch() { if [[ ${mode} == "get" ]]; then einfo "Running ${cmdget}" - eval ${cmdget} || die "darcs get command failed" + HOME="${EDARCS_TOP_DIR}" ${cmdget} || die "darcs get command failed" elif [[ -n ${EDARCS_OFFLINE} ]] ; then einfo "Offline update" elif [[ ${mode} == "update" ]]; then einfo "Running ${cmdupdate}" - eval ${cmdupdate} || die "darcs update command failed" + HOME="${EDARCS_TOP_DIR}" ${cmdupdate} || die "darcs update command failed" fi export EDARCS_PATCHCOUNT=$(darcs_patchcount) |