summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2011-02-05 19:18:42 +0000
committerUlrich Müller <ulm@gentoo.org>2011-02-05 19:18:42 +0000
commit82a9ec58f24629ad85a69c532e83b1e5aeec7e78 (patch)
treef7377fb9116f3370279299ed4bd948df188970f3 /eclass
parentAdd a workaround for faster initial download from a mirror. (diff)
downloademacs-82a9ec58f24629ad85a69c532e83b1e5aeec7e78.tar.gz
emacs-82a9ec58f24629ad85a69c532e83b1e5aeec7e78.tar.bz2
emacs-82a9ec58f24629ad85a69c532e83b1e5aeec7e78.zip
Warn about EBZR_OFFLINE with initial fetch. Remove useless debug statements.
svn path=/emacs-overlay/; revision=1601
Diffstat (limited to 'eclass')
-rw-r--r--eclass/bzr.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
index d0b236d..891360f 100644
--- a/eclass/bzr.eclass
+++ b/eclass/bzr.eclass
@@ -139,6 +139,10 @@ DEPEND=">=dev-vcs/bzr-2.0.1"
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."
+ fi
+
# fetch branch
einfo "bzr branch start -->"
einfo " repository: ${repo_uri} => ${branch_dir}"
@@ -199,7 +203,6 @@ bzr_fetch() {
fi
if [[ ! -d ${EBZR_STORE_DIR} ]] ; then
- debug-print "${FUNCNAME}: initial branch. Creating bzr directory"
local save_sandbox_write=${SANDBOX_WRITE}
addwrite /
mkdir -p "${EBZR_STORE_DIR}" \
@@ -223,8 +226,6 @@ bzr_fetch() {
rm -rf "${repo_dir}"
fi
- debug-print "${FUNCNAME}: EBZR_OPTIONS = ${EBZR_OPTIONS}"
-
if [[ ! -d ${branch_dir}/.bzr ]]; then
if [[ ${repo_dir} != "${branch_dir}" && ! -d ${repo_dir}/.bzr ]]; then
einfo "creating shared bzr repository"