From 52201df4cc8053dc44b0666931ef5652e269abd8 Mon Sep 17 00:00:00 2001 From: hiwrac Date: Tue, 23 Sep 2014 23:02:19 -0400 Subject: [PATCH] Adding apt-get update prior to attempting install of apt-transport-https in docker publish plugin --- pkg/plugin/publish/docker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/plugin/publish/docker.go b/pkg/plugin/publish/docker.go index 885787a7..f69ac1d4 100644 --- a/pkg/plugin/publish/docker.go +++ b/pkg/plugin/publish/docker.go @@ -54,6 +54,8 @@ func (d *Docker) Write(f *buildfile.Buildfile, r *repo.Repo) { return } + f.WriteCmd("sudo apt-get update") + // Ensure correct apt-get has the https method-driver as per (http://askubuntu.com/questions/165676/) f.WriteCmd("sudo apt-get install apt-transport-https")