Add backup rapture apt repos to pbuilder config and package sources.
Change-Id: I91afe835cd669063f52cb8d03a8afd52d9782afe
diff --git a/mendel.list.template b/mendel.list.template
index ba7ff0f..f5ad4e6 100644
--- a/mendel.list.template
+++ b/mendel.list.template
@@ -2,3 +2,7 @@
deb-src [trusted=yes] https://mendel-linux.org/apt/eagle eagle main
deb [arch=armhf,arm64 trusted=yes] https://mendel-linux.org/apt/eagle eagle-bsp-%BOARDNAME% main
deb-src [trusted=yes] https://mendel-linux.org/apt/eagle eagle-bsp-%BOARDNAME% main
+deb [arch=armhf,arm64 trusted=yes] https://packages.cloud.google.com/apt mendel-eagle main
+deb-src [trusted=yes] https://packages.cloud.google.com/apt mendel-eagle main
+deb [arch=armhf,arm64 trusted=yes] https://packages.cloud.google.com/apt mendel-eagle-bsp-%BOARDNAME% main
+deb-src [trusted=yes] https://packages.cloud.google.com/apt mendel-eagle-bsp-%BOARDNAME% main
diff --git a/pbuilder-hooks/D05deps b/pbuilder-hooks/D05deps
index dd871b3..7f5ce5b 100755
--- a/pbuilder-hooks/D05deps
+++ b/pbuilder-hooks/D05deps
@@ -5,9 +5,13 @@
if [[ -z "${IS_JENKINS}" ]]; then
echo "deb [arch=arm64] https://mendel-linux.org/apt/unstable unstable main" >> /etc/apt/sources.list
echo "deb [arch=arm64] https://mendel-linux.org/apt/unstable-bsp-$BOARD_NAME unstable main" >> /etc/apt/sources.list
+ echo "deb [trusted=yes] https://packages.cloud.google.com/apt mendel-eagle main" >> /etc/apt/sources.list
+ echo "deb [trusted=yes] https://packages.cloud.google.com/apt mendel-eagle-bsp-$BOARD_NAME main" >> /etc/apt/sources.list
else
echo "deb [arch=arm64] https://mendel-linux.org/apt/eagle eagle main" >> /etc/apt/sources.list
echo "deb [arch=arm64] https://mendel-linux.org/apt/eagle-bsp-$BOARD_NAME eagle main" >> /etc/apt/sources.list
+ echo "deb [trusted=yes] https://packages.cloud.google.com/apt mendel-eagle main" >> /etc/apt/sources.list
+ echo "deb [trusted=yes] https://packages.cloud.google.com/apt mendel-eagle-bsp-$BOARD_NAME main" >> /etc/apt/sources.list
fi
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" >> /etc/apt/sources.list
diff --git a/pbuilderrc b/pbuilderrc
index 95bc64d..3ee6753 100644
--- a/pbuilderrc
+++ b/pbuilderrc
@@ -4,7 +4,7 @@
# the default template
#
# read pbuilderrc.5 document for notes on specific options.
-OTHERMIRROR="deb https://mendel-linux.org/apt/eagle eagle main|deb https://mendel-linux.org/apt/eagle eagle-bsp-$BOARD_NAME main"
+OTHERMIRROR="deb https://mendel-linux.org/apt/eagle eagle main|deb https://mendel-linux.org/apt/eagle eagle-bsp-$BOARD_NAME main|deb https://packages.cloud.google.com/apt mendel-eagle main|deb https://packages.cloud.google.com/apt mendel-eagle-bsp-$BOARD_NAME main"
PBUILDERSATISFYDEPENDSCMD=/usr/lib/pbuilder/pbuilder-satisfydepends-apt
export DEPSBASE=$PRODUCT_OUT/packages
BINDMOUNTS="$DEPSBASE $ROOTDIR"