Clear the line on box downloads [closes GH-476]

This commit is contained in:
Mitchell Hashimoto 2011-08-27 20:35:01 -07:00
parent d2498cfa99
commit 5f62231bac
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
## 0.8.6 (unreleased)
- Fix issue with download progress not properly clearing the line. [GH-476]
## 0.8.5 (August 15, 2011)

View File

@ -49,6 +49,7 @@ module Vagrant
# Progress reporting is limited to every 25 segments just so
# we're not constantly updating
if segment_count % 25 == 0
env.ui.clear_line
env.ui.report_progress(progress, total)
segment_count = 0
end
@ -56,6 +57,9 @@ module Vagrant
# Store the segment
destination_file.write(segment)
end
# Clear the line one last time so that the progress meter disappears
env.ui.clear_line
end
end
rescue SocketError