Clear the line on box downloads [closes GH-476]
This commit is contained in:
parent
d2498cfa99
commit
5f62231bac
|
@ -1,6 +1,6 @@
|
||||||
## 0.8.6 (unreleased)
|
## 0.8.6 (unreleased)
|
||||||
|
|
||||||
|
- Fix issue with download progress not properly clearing the line. [GH-476]
|
||||||
|
|
||||||
## 0.8.5 (August 15, 2011)
|
## 0.8.5 (August 15, 2011)
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ module Vagrant
|
||||||
# Progress reporting is limited to every 25 segments just so
|
# Progress reporting is limited to every 25 segments just so
|
||||||
# we're not constantly updating
|
# we're not constantly updating
|
||||||
if segment_count % 25 == 0
|
if segment_count % 25 == 0
|
||||||
|
env.ui.clear_line
|
||||||
env.ui.report_progress(progress, total)
|
env.ui.report_progress(progress, total)
|
||||||
segment_count = 0
|
segment_count = 0
|
||||||
end
|
end
|
||||||
|
@ -56,6 +57,9 @@ module Vagrant
|
||||||
# Store the segment
|
# Store the segment
|
||||||
destination_file.write(segment)
|
destination_file.write(segment)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Clear the line one last time so that the progress meter disappears
|
||||||
|
env.ui.clear_line
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue SocketError
|
rescue SocketError
|
||||||
|
|
Loading…
Reference in New Issue