[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] [PATCH v2 6/6] bzr.eclass: Drop support for EBZR_INITIAL_URI
From: Ulrich Müller <ulm () gentoo ! org>
Date: 2021-09-25 12:28:41
Message-ID: 20210925122834.18686-6-ulm () gentoo ! org
[Download RAW message or body]
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@gentoo.org>
---
eclass/bzr.eclass | 25 +------------------------
1 file changed, 1 insertion(+), 24 deletions(-)
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
index 5dd5d40c13fa..b89f4216034f 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
--
2.33.0
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic