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 committed 2016-09-12 15:01:18 -07:00
1 parent 3a66c04f23
commit fc2c1b9f7d
1 file changed
+4 -1
+4 -1
View File
@@ -728,7 +728,10 @@ function Start-PSBootstrap {
if ($Package) { $Deps += "ruby-dev", "groff" } if ($Package) { $Deps += "ruby-dev", "groff" }
# Install dependencies # 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) { } elseif ($IsCentOS) {
# Build tools # Build tools
$Deps += "which", "curl", "gcc-c++", "cmake", "make" $Deps += "which", "curl", "gcc-c++", "cmake", "make"