[PATCH 4/5] Update progress display when download phase starts

Jon TURNEY jon.turney@dronecode.org.uk
Sun Apr 24 13:06:00 GMT 2011


If we have many packages installed, but very little to download, don't
leave the last package we checked for prerequisites displayed whilst we
locate the first package to download

2011-04-24  Jon TURNEY  <jon.turney@dronecode.org.uk>

	* download.cc (do_download_thread): Update progress display
	when download phase starts

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
---
 download.cc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/download.cc b/download.cc
index 25260fd..32bb2c4 100644
--- a/download.cc
+++ b/download.cc
@@ -199,6 +199,10 @@ do_download_thread (HINSTANCE h, HWND owner)
   total_download_bytes = 0;
   total_download_bytes_sofar = 0;
 
+  Progress.SetText1 ("Checking for packages to download...");
+  Progress.SetText2 ("");
+  Progress.SetText3 ("");
+
   packagedb db;
   /* calculate the amount needed */
   for (packagedb::packagecollection::iterator i = db.packages.begin ();
-- 
1.7.4



More information about the Cygwin-apps mailing list