From: Ian Jackson Date: Wed, 4 Jun 2014 13:46:49 +0000 (+0100) Subject: cri-common, ap-common: abstract out besteffort_repo X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=01a571530584a94e5cac5b9f995d23a4c53b36ea;p=people%2Fdariof%2Fosstest.git cri-common, ap-common: abstract out besteffort_repo Signed-off-by: Ian Jackson --- diff --git a/ap-common b/ap-common index bca0fea..895ad62 100644 --- a/ap-common +++ b/ap-common @@ -37,7 +37,7 @@ : ${PUSH_TREE_LIBVIRT:=$XENBITS:/home/xen/git/libvirt.git} : ${BASE_TREE_LIBVIRT:=git://xenbits.xen.org/libvirt.git} -: ${TREE_GNULIB_LIBVIRT:=$(cached_repo git://git.sv.gnu.org/gnulib.git \[fetch=try\])} +: ${TREE_GNULIB_LIBVIRT:=$(besteffort_repo git://git.sv.gnu.org/gnulib.git)} : ${TREE_RUMPUSERXEN:=https://github.com/rumpkernel/rumpuser-xen} : ${TREEVCS_RUMPUSERXEN:=git} diff --git a/cri-common b/cri-common index 9cbf0d8..06a8d67 100644 --- a/cri-common +++ b/cri-common @@ -33,6 +33,11 @@ cached_repo () { fi } +besteffort_repo () { + local repo=$1 + cached_repo "$1" '[fetch=try]' +} + repo_tree_rev_fetch_git () { local treename=$1 local remoteurl=$2