summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2010-06-26 22:18:10 +0200
committerMartin Väth <martin@mvath.de>2015-10-11 10:45:39 +0200
commit26f3152b68029eec75e34b95e53b9636243a0924 (patch)
treee64242f8eab4e796a117d721c9363f5cc97f0095 /eclass
parentAdd monotone.eclass for magus. Improve mv_mozextension.eclass messages (diff)
downloadmv-26f3152b68029eec75e34b95e53b9636243a0924.tar.gz
mv-26f3152b68029eec75e34b95e53b9636243a0924.tar.bz2
mv-26f3152b68029eec75e34b95e53b9636243a0924.zip
Fix monotone.eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/monotone.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/monotone.eclass b/eclass/monotone.eclass
index 341749da..7dc2df79 100644
--- a/eclass/monotone.eclass
+++ b/eclass/monotone.eclass
@@ -124,7 +124,7 @@ monotone_fetch () {
einfo "Fetching ${db} from remote ${repo_uri}" && \
eval "${EMTN_PULL_CMD} \"\${repo_uri}\" \"\${glob}\""
)
- elif [ -n "${EMTN_OFFLINE}" ]
+ elif [ -z "${EMTN_OFFLINE}" ]
then ( addwrite "${PWD}"
einfo "Updating ${db} from remote ${repo_uri}"
eval "${EMTN_PULL_CMD}"
@@ -174,7 +174,8 @@ monotone_co () {
then eval "set -- ${EMTN_REVISIONARGS}"
fi
if [ "${1}" = "head" ]
- then if r=`eval "${EMTN_PRINT_HEADS_CMD}" | tail -n1` && [ -n "${r}" ]
+ then if r=`eval "${EMTN_PRINT_HEADS_CMD} \"\${modulepath}\"" \
+ | tail -n1` && [ -n "${r}" ]
then set -- -r "${r}"
else set --
fi