commit: 7e3d69ba24d86abeadd1ecf474577e6977b78934
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 25 12:08:15 2021 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Sep 27 16:54:46 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e3d69ba
bzr.eclass: Drop support for EBZR_INITIAL_URI
This was historically used only for GNU Emacs, which had a slow
original repository and a fast (but possibly out of date) mirror.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
eclass/bzr.eclass | 25 +------------------------
1 file changed, 1 insertion(+), 24 deletions(-)
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
index 5dd5d40c13f..b89f4216034 100644
--- a/eclass/bzr.eclass
+++ b/eclass/bzr.eclass
@@ -82,17 +82,6 @@ EXPORT_FUNCTIONS src_unpack
# @DESCRIPTION:
# The repository URI for the source package.
-# @ECLASS-VARIABLE: EBZR_INITIAL_URI
-# @DEFAULT_UNSET
-# @DESCRIPTION:
-# The URI used for initial branching of the source repository. If this
-# variable is set, the initial branch will be cloned from the location
-# specified, followed by a pull from ${EBZR_REPO_URI}. This is intended
-# for special cases, e.g. when download from the original repository is
-# slow, but a fast mirror exists but may be out of date.
-#
-# Normally, this variable needs not be set.
-
# @ECLASS-VARIABLE: EBZR_PROJECT
# @DESCRIPTION:
# The project name of your ebuild. Normally, the branch will be stored
@@ -231,19 +220,7 @@ bzr_fetch() {
${EBZR_INIT_REPO_CMD} "${repo_dir}" \
|| die "${ECLASS}: can't create shared
repository"
fi
-
- if [[ -z ${EBZR_INITIAL_URI} ]]; then
- _bzr_initial_fetch "${EBZR_REPO_URI}" "${branch_dir}"
- else
- # Workaround for faster initial download. This clones
the
- # branch from a fast server (which may be out of date),
and
- # subsequently pulls from the slow original repository.
- _bzr_initial_fetch "${EBZR_INITIAL_URI}" "${branch_dir}"
- if [[ ${EBZR_REPO_URI} != "${EBZR_INITIAL_URI}" ]]; then
- EBZR_UPDATE_CMD="${EBZR_UPDATE_CMD} --remember
--overwrite" \
- bzr_update "${EBZR_REPO_URI}"
"${branch_dir}"
- fi
- fi
+ _bzr_initial_fetch "${EBZR_REPO_URI}" "${branch_dir}"
else
_bzr_update "${EBZR_REPO_URI}" "${branch_dir}"
fi