This commit is contained in:
Mitchell Hashimoto 2013-06-28 09:44:03 -04:00
parent 358e71d98e
commit 82bbbbbf32
3 changed files with 42 additions and 44 deletions

View File

@ -178,7 +178,7 @@ func (b *coreBuild) Run(originalUi Ui, cache Cache) ([]Artifact, error) {
keepOriginalArtifact := len(b.postProcessors) == 0
// Run the post-processors
PostProcessorRunSeqLoop:
PostProcessorRunSeqLoop:
for _, ppSeq := range b.postProcessors {
priorArtifact := builderArtifact
for i, corePP := range ppSeq {
@ -248,17 +248,17 @@ func (b *coreBuild) Run(originalUi Ui, cache Cache) ([]Artifact, error) {
}
return artifacts, err
}
}
func (b *coreBuild) SetDebug(val bool) {
func (b *coreBuild) SetDebug(val bool) {
if b.prepareCalled {
panic("prepare has already been called")
}
b.debug = val
}
}
// Cancels the build if it is running.
func (b *coreBuild) Cancel() {
// Cancels the build if it is running.
func (b *coreBuild) Cancel() {
b.builder.Cancel()
}
}

View File

@ -63,7 +63,6 @@ func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artif
}
}
if p.config.VagrantfileTemplate != "" {
f, err := os.Open(p.config.VagrantfileTemplate)
if err != nil {
@ -88,7 +87,6 @@ func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artif
vf.Close()
}
// Create the metadata
metadata := map[string]string{"provider": "vmware"}
if err := WriteMetadata(dir, metadata); err != nil {