Skip to contentSkip to conversation

cri-common, ap-common: abstract out besteffort_repo

PATCH New Ian Jackson 1 participant 2 messages Jun 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cri-common, ap-common: abstract out besteffort_repo

---
 ap-common  |    2 +-
 cri-common |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
ap-common +1 -1
index bca0fea..895ad62 100644
@@ -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}
cri-common +5 -0
index 9cbf0d8..06a8d67 100644
@@ -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
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 ap-common: Use besteffort_repo for rumpsrc

---
 ap-common |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ap-common +1 -1
index 895ad62..ba3a180 100644
@@ -44,7 +44,7 @@
 : ${BASE_TREE_RUMPUSERXEN:=git://xenbits.xen.org/rumpuser-xen.git}
 : ${PUSH_TREE_RUMPUSERXEN:=$XENBITS:/home/xen/git/rumpuser-xen.git}
 
-: ${TREE_RUMPUSERXEN_RUMPSRC:=https://github.com/rumpkernel/rumpkernel-netbsd-src}
+: ${TREE_RUMPUSERXEN_RUMPSRC:=$(besteffort_repo https://github.com/rumpkernel/rumpkernel-netbsd-src)}
 : ${TREEVCS_RUMPUSERXEN_RUMPSRC:=git}
 
 : ${TREE_SEABIOS_UPSTREAM:=git://git.seabios.org/seabios.git}
Signature · 1 line
1.7.10.4