Add repo tool
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 24 Apr 2019 14:51:14 +0000 (16:51 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 24 Apr 2019 14:51:14 +0000 (16:51 +0200)
Change-Id: I1766a6fe269cf64c379d2e1f8241325e18301b1a
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
packer/provision/agl_mirror.sh

index 9bfc264..ea73905 100644 (file)
@@ -2,6 +2,12 @@
 
 set -x
 
+mkdir -p ~/bin || true
+PATH=~/bin:$PATH
+
+curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
+chmod a+x ~/bin/repo
+
 # Preclone the gerrit repos for speed (use with --reference=/opt/AGL/preclone)
 mkdir -p /opt/AGL/preclone
 cd /opt/AGL/preclone