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.
This commit is contained in:
Andrew Schwartzmeyer 2016-09-08 16:31:36 -07:00
parent 3a66c04f23
commit fc2c1b9f7d

View file

@ -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"