~fginther/ubuntu-test-cases/click-install-workarounds

« back to all changes in this revision

Viewing changes to utils/host/reboot-and-unlock.sh

  • Committer: Francis Ginther
  • Date: 2015-12-23 03:02:33 UTC
  • Revision ID: francis.ginther@canonical.com-20151223030233-yw493uv4j5ax34uo
Ensure apt cache is updated before getting unity8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
if ! adb-shell dpkg -s unity8-autopilot 2>/dev/null >/dev/null ; then
7
7
        echo "Installing unity8-autopilot as a pre-req for unlocking screen"
 
8
        adb shell "sudo apt-get update"
8
9
        # Installation some times fails due to not being able to
9
 
        # resolve derived.archive.canonical.com. 
 
10
        # resolve derived.archive.canonical.com.
10
11
        # So retry a couple of more times
11
12
        adb shell "sudo apt-get install -yq --force-yes unity8-autopilot || \
12
13
sudo apt-get install -yq --force-yes unity8-autopilot || \