Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: arthurzam@g.o, "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH v2 6/6] bzr.eclass: Drop support for EBZR_INITIAL_URI
Date: Sat, 25 Sep 2021 12:30:54
Message-Id: 20210925122834.18686-6-ulm@gentoo.org
In Reply to: [gentoo-dev] [PATCH v2 1/6] bzr.eclass: Reinstate eclass by "Ulrich Müller"
1 This was historically used only for GNU Emacs, which had a slow
2 original repository and a fast (but possibly out of date) mirror.
3
4 Signed-off-by: Ulrich Müller <ulm@g.o>
5 ---
6 eclass/bzr.eclass | 25 +------------------------
7 1 file changed, 1 insertion(+), 24 deletions(-)
8
9 diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
10 index 5dd5d40c13fa..b89f4216034f 100644
11 --- a/eclass/bzr.eclass
12 +++ b/eclass/bzr.eclass
13 @@ -82,17 +82,6 @@ EXPORT_FUNCTIONS src_unpack
14 # @DESCRIPTION:
15 # The repository URI for the source package.
16
17 -# @ECLASS-VARIABLE: EBZR_INITIAL_URI
18 -# @DEFAULT_UNSET
19 -# @DESCRIPTION:
20 -# The URI used for initial branching of the source repository. If this
21 -# variable is set, the initial branch will be cloned from the location
22 -# specified, followed by a pull from ${EBZR_REPO_URI}. This is intended
23 -# for special cases, e.g. when download from the original repository is
24 -# slow, but a fast mirror exists but may be out of date.
25 -#
26 -# Normally, this variable needs not be set.
27 -
28 # @ECLASS-VARIABLE: EBZR_PROJECT
29 # @DESCRIPTION:
30 # The project name of your ebuild. Normally, the branch will be stored
31 @@ -231,19 +220,7 @@ bzr_fetch() {
32 ${EBZR_INIT_REPO_CMD} "${repo_dir}" \
33 || die "${ECLASS}: can't create shared repository"
34 fi
35 -
36 - if [[ -z ${EBZR_INITIAL_URI} ]]; then
37 - _bzr_initial_fetch "${EBZR_REPO_URI}" "${branch_dir}"
38 - else
39 - # Workaround for faster initial download. This clones the
40 - # branch from a fast server (which may be out of date), and
41 - # subsequently pulls from the slow original repository.
42 - _bzr_initial_fetch "${EBZR_INITIAL_URI}" "${branch_dir}"
43 - if [[ ${EBZR_REPO_URI} != "${EBZR_INITIAL_URI}" ]]; then
44 - EBZR_UPDATE_CMD="${EBZR_UPDATE_CMD} --remember --overwrite" \
45 - bzr_update "${EBZR_REPO_URI}" "${branch_dir}"
46 - fi
47 - fi
48 + _bzr_initial_fetch "${EBZR_REPO_URI}" "${branch_dir}"
49 else
50 _bzr_update "${EBZR_REPO_URI}" "${branch_dir}"
51 fi
52 --
53 2.33.0