From fc2c1b9f7dfb59154fa7efe0bfa5934f1471e9bf Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 8 Sep 2016 16:31:36 -0700 Subject: [PATCH] Update apt-get repo in Start-PSBootstrap yum does not need this as yum install does it automatically. This is needed when running, for example, in a container. --- build.psm1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 977fc6284..5f4d54630 100644 --- a/build.psm1 +++ b/build.psm1 @@ -728,7 +728,10 @@ function Start-PSBootstrap { if ($Package) { $Deps += "ruby-dev", "groff" } # Install dependencies - Start-NativeExecution { Invoke-Expression "$sudo apt-get install -y -qq $Deps" } + Start-NativeExecution { + Invoke-Expression "$sudo apt-get update" + Invoke-Expression "$sudo apt-get install -y -qq $Deps" + } } elseif ($IsCentOS) { # Build tools $Deps += "which", "curl", "gcc-c++", "cmake", "make"