public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Update for bzr.eclass
@ 2013-07-07 17:54 Ulrich Mueller
  2013-07-07 18:35 ` Mike Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Mueller @ 2013-07-07 17:54 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]

Hi all,
Find below a small update for bzr.eclass.

Sometimes it is convenient to unpack the sources in a location
different from ${WORKDIR}/${P}. The patch makes this configurable via
a new EBZR_UNPACK_DIR variable. The default location doesn't change,
so there should be no issues with backwards compatibility.

Please review.

Ulrich


--- bzr.eclass	18 Sep 2012 06:41:45 -0000	1.19
+++ bzr.eclass	7 Jul 2013 17:47:06 -0000
@@ -41,6 +41,11 @@
 # 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 @@
 	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
 }

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-07 18:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-07 17:54 [gentoo-dev] Update for bzr.eclass Ulrich Mueller
2013-07-07 18:35 ` Mike Gilbert
2013-07-07 18:53   ` Ulrich Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox