commit: e20e90146f5d6191788a211cf0404a4f0af5c60b
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 25 11:59:33 2021 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Sep 27 16:54:45 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e20e9014
bzr.eclass: Fix EBZR_OFFLINE logic
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
eclass/bzr.eclass | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
index d5ac999aeb8..de73aed7f67 100644
--- a/eclass/bzr.eclass
+++ b/eclass/bzr.eclass
@@ -158,8 +158,8 @@ EXPORT_FUNCTIONS src_unpack
_bzr_initial_fetch() {
local repo_uri=$1 branch_dir=$2
- if [[ -n "${EBZR_OFFLINE}" ]]; then
- ewarn "EBZR_OFFLINE cannot be used when there is no local
branch yet."
+ if [[ -n ${EBZR_OFFLINE} ]]; then
+ die "EBZR_OFFLINE cannot be used when there is no local branch
yet."
fi
# fetch branch
@@ -179,7 +179,7 @@ _bzr_initial_fetch() {
_bzr_update() {
local repo_uri=$1 branch_dir=$2
- if [[ -n "${EBZR_OFFLINE}" ]]; then
+ if [[ -n ${EBZR_OFFLINE} ]]; then
einfo "skipping bzr pull -->"
einfo " repository: ${repo_uri}"
else
@@ -241,7 +241,6 @@ bzr_fetch() {
_bzr_initial_fetch "${EBZR_INITIAL_URI}" "${branch_dir}"
if [[ ${EBZR_REPO_URI} != "${EBZR_INITIAL_URI}" ]]; then
EBZR_UPDATE_CMD="${EBZR_UPDATE_CMD} --remember
--overwrite" \
- EBZR_OFFLINE="" \
bzr_update "${EBZR_REPO_URI}"
"${branch_dir}"
fi
fi