Commit f83ec959 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: style nitpicks and CHANGELOG

parent 1e7508c8
...@@ -4,6 +4,8 @@ FEATURES: ...@@ -4,6 +4,8 @@ FEATURES:
* "file" uploader will upload files and directories from the machine * "file" uploader will upload files and directories from the machine
running Packer to the remote machine. running Packer to the remote machine.
* VirtualBox guest additions URL and checksum can now be specified, allowing
the VirtualBox builder to have the ability to be used completely offline.
IMPROVEMENTS: IMPROVEMENTS:
......
...@@ -142,17 +142,17 @@ func (s *stepDownloadGuestAdditions) downloadAdditionsSHA256(state map[string]in ...@@ -142,17 +142,17 @@ func (s *stepDownloadGuestAdditions) downloadAdditionsSHA256(state map[string]in
// First things first, we get the list of checksums for the files available // First things first, we get the list of checksums for the files available
// for this version. // for this version.
checksumsUrl := fmt.Sprintf("http://download.virtualbox.org/virtualbox/%s/SHA256SUMS", additionsVersion) checksumsUrl := fmt.Sprintf("http://download.virtualbox.org/virtualbox/%s/SHA256SUMS", additionsVersion)
checksumsFile, err := ioutil.TempFile("", "packer")
checksumsFile, err := ioutil.TempFile("", "packer")
if err != nil { if err != nil {
state["error"] = fmt.Errorf( state["error"] = fmt.Errorf(
"Failed creating temporary file to store guest addition checksums: %s", "Failed creating temporary file to store guest addition checksums: %s",
err) err)
return "", multistep.ActionHalt return "", multistep.ActionHalt
} }
defer os.Remove(checksumsFile.Name())
checksumsFile.Close() checksumsFile.Close()
defer os.Remove(checksumsFile.Name())
downloadConfig := &common.DownloadConfig{ downloadConfig := &common.DownloadConfig{
Url: checksumsUrl, Url: checksumsUrl,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment