summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-02-23 14:54:39 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-02-23 10:21:04 +0000
commitd8941afed5c1184f026857efdb9d60ea14d28c5f (patch)
tree7d1942c8a05aa8498619f480eb0d163fdacf74cb
parente2c463022339b75844ac63f577593ea847090eba (diff)
downloadtest-definitions-pipe-d8941afed5c1184f026857efdb9d60ea14d28c5f.tar.gz
automated: android: cts: skip adding backports repo on Debian sid
Change-Id: I167868f60463b8138115e89a0a2d397a4beb853a Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rwxr-xr-xautomated/android/cts/cts.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/automated/android/cts/cts.sh b/automated/android/cts/cts.sh
index 86b4dd2..653a2d5 100755
--- a/automated/android/cts/cts.sh
+++ b/automated/android/cts/cts.sh
@@ -42,7 +42,9 @@ else
dpkg --add-architecture i386
dist_info
echo "deb [arch=amd64,i386] http://ftp.us.debian.org/debian ${Codename} main non-free contrib" > /etc/apt/sources.list.d/cts.list
- echo "deb http://ftp.debian.org/debian ${Codename}-backports main" >> /etc/apt/sources.list.d/cts.list
+ if [ "${Codename}" != "sid" ]; then
+ echo "deb http://ftp.debian.org/debian ${Codename}-backports main" >> /etc/apt/sources.list.d/cts.list
+ fi
cat /etc/apt/sources.list.d/cts.list
apt-get update || true
install_deps "${JDK}" || install_deps "-t ${Codename}-backports ${JDK}"