From: Ian Jackson Subject: [OSSTEST PATCH 1/2] cri-common, ap-common: abstract out besteffort_repo Date: Wed, 4 Jun 2014 14:48:31 +0100 Message-ID: <1401889712-31125-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WsBYt-0004n9-Ii for xen-devel@lists.xenproject.org; Wed, 04 Jun 2014 13:49:03 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Jackson --- ap-common | 2 +- cri-common | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 1.7.10.4