summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-07-11 18:38:59 +0000
committerUlrich Müller <ulm@gentoo.org>2013-07-11 18:38:59 +0000
commit904abf31786dbcafd53b2b63fd921cf85c029921 (patch)
tree522c7a012208cb12c07308da90e94fa1b357458f /eclass/bzr.eclass
parentVersion bump, mostly fixes rule-generator (diff)
downloadgentoo-2-904abf31786dbcafd53b2b63fd921cf85c029921.tar.gz
gentoo-2-904abf31786dbcafd53b2b63fd921cf85c029921.tar.bz2
gentoo-2-904abf31786dbcafd53b2b63fd921cf85c029921.zip
New variable EBZR_UNPACK_DIR.
Diffstat (limited to 'eclass/bzr.eclass')
-rw-r--r--eclass/bzr.eclass16
1 files changed, 11 insertions, 5 deletions
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
index edee2d8f61c4..c3d33590e5b6 100644
--- a/eclass/bzr.eclass
+++ b/eclass/bzr.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/bzr.eclass,v 1.19 2012/09/18 06:41:45 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/bzr.eclass,v 1.20 2013/07/11 18:38:59 ulm Exp $
#
# @ECLASS: bzr.eclass
# @MAINTAINER:
@@ -41,6 +41,11 @@ esac
# The directory to store all fetched Bazaar live sources.
: ${EBZR_STORE_DIR:=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/bzr-src}
+# @ECLASS-VARIABLE: EBZR_UNPACK_DIR
+# @DESCRIPTION:
+# The working directory where the sources are copied to.
+: ${EBZR_UNPACK_DIR:=${WORKDIR}/${P}}
+
# @ECLASS-VARIABLE: EBZR_INIT_REPO_CMD
# @DESCRIPTION:
# The Bazaar command to initialise a shared repository.
@@ -261,13 +266,14 @@ bzr_fetch() {
if [[ -n ${EBZR_WORKDIR_CHECKOUT} ]]; then
einfo "checking out ..."
${EBZR_CHECKOUT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \
- . "${WORKDIR}/${P}" || die "${EBZR}: checkout failed"
+ . "${EBZR_UNPACK_DIR}" || die "${EBZR}: checkout failed"
else
einfo "exporting ..."
${EBZR_EXPORT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \
- "${WORKDIR}/${P}" . || die "${EBZR}: export failed"
+ "${EBZR_UNPACK_DIR}" . || die "${EBZR}: export failed"
fi
- einfo "revision ${EBZR_REVISION:-${EBZR_REVNO}} is now in ${WORKDIR}/${P}"
+ einfo \
+ "revision ${EBZR_REVISION:-${EBZR_REVNO}} is now in ${EBZR_UNPACK_DIR}"
popd > /dev/null
}