Browse code

Use apt_get_update after we setup UCA

It is possible some CI system are using an http_proxy. Use the helper
function to cover this use case.

Change-Id: Iee685147ca0244fc7de328a765f937602223de20
Signed-off-by: Paul Belanger <pabelanger@redhat.com>

Paul Belanger authored on 2017/04/14 01:07:57
Showing 1 changed files
... ...
@@ -91,7 +91,9 @@ if [[ "$DISTRO" = "xenial" ]]; then
91 91
         # Otherwise use upstream UCA
92 92
         sudo add-apt-repository -y cloud-archive:ocata
93 93
     fi
94
-    sudo apt-get update
94
+    # Force update our APT repos, since we added UCA above.
95
+    REPOS_UPDATED=False
96
+    apt_get_update
95 97
 fi
96 98
 
97 99