|
|
|
@ -69,7 +69,10 @@ DownloadWaitLoop:
|
|
|
|
|
|
|
|
|
|
|
|
break DownloadWaitLoop
|
|
|
|
break DownloadWaitLoop
|
|
|
|
case <-progressTicker.C:
|
|
|
|
case <-progressTicker.C:
|
|
|
|
ui.Message(fmt.Sprintf("Download progress: %d%%", download.PercentProgress()))
|
|
|
|
progress := download.PercentProgress()
|
|
|
|
|
|
|
|
if progress >= 0 {
|
|
|
|
|
|
|
|
ui.Message(fmt.Sprintf("Download progress: %d%%", progress))
|
|
|
|
|
|
|
|
}
|
|
|
|
case <-time.After(1 * time.Second):
|
|
|
|
case <-time.After(1 * time.Second):
|
|
|
|
if _, ok := state[multistep.StateCancelled]; ok {
|
|
|
|
if _, ok := state[multistep.StateCancelled]; ok {
|
|
|
|
ui.Say("Interrupt received. Cancelling download...")
|
|
|
|
ui.Say("Interrupt received. Cancelling download...")
|
|
|
|
|