[yast-commit] r46786 - in /trunk/installation: VERSION package/yast2-installation.changes src/clients/inst_deploy_image.ycp src/modules/ImageInstallation.ycp
Author: locilka
Date: Thu Apr 17 14:00:57 2008
New Revision: 46786
URL: http://svn.opensuse.org/viewcvs/yast?rev=46786&view=rev
Log:
- Added image-downloading progress (reusing existent progress bar).
- 2.16.37
Modified:
trunk/installation/VERSION
trunk/installation/package/yast2-installation.changes
trunk/installation/src/clients/inst_deploy_image.ycp
trunk/installation/src/modules/ImageInstallation.ycp
Modified: trunk/installation/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/VERSION?rev=46786&r1=46785&r2=46786&view=diff
==============================================================================
--- trunk/installation/VERSION (original)
+++ trunk/installation/VERSION Thu Apr 17 14:00:57 2008
@@ -1 +1 @@
-2.16.36
+2.16.37
Modified: trunk/installation/package/yast2-installation.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/package/yast2-installation.changes?rev=46786&r1=46785&r2=46786&view=diff
==============================================================================
--- trunk/installation/package/yast2-installation.changes (original)
+++ trunk/installation/package/yast2-installation.changes Thu Apr 17 14:00:57 2008
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Apr 17 14:01:46 CEST 2008 - locilka@suse.cz
+
+- Added image-downloading progress (reusing existent progress bar).
+- 2.16.37
+
+-------------------------------------------------------------------
Wed Apr 16 14:20:06 CEST 2008 - locilka@suse.cz
- Running runlevel proposal after software proposal (bnc #380141).
Modified: trunk/installation/src/clients/inst_deploy_image.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/clients/inst_deploy_image.ycp?rev=46786&r1=46785&r2=46786&view=diff
==============================================================================
--- trunk/installation/src/clients/inst_deploy_image.ycp (original)
+++ trunk/installation/src/clients/inst_deploy_image.ycp Thu Apr 17 14:00:57 2008
@@ -4,6 +4,7 @@
import "Progress";
import "Wizard";
import "SourceManager";
+import "String";
textdomain "installation";
@@ -46,6 +47,25 @@
);
}
+integer _last_download_progress = -1;
+
+boolean MyProgressDownloadHandler (integer percent, integer bps_avg, integer bps_current) {
+ // FIXME: remove this line
+ y2milestone ("PerCent: %1, AVG: %2, Spd: %3", percent, bps_avg, bps_current);
+
+ if (_last_download_progress < percent) {
+ UI::ChangeWidget (
+ `id ("one_image"), `Label,
+ sformat (_("Downloading image at speed %1/s"), String::FormatSize (bps_current))
+ );
+ UI::ChangeWidget (`id ("one_image"), `Value, percent);
+ }
+
+ _last_download_progress = percent;
+
+ return true;
+}
+
integer _last_progress = -1;
string _last_image_id = nil;
@@ -53,9 +73,10 @@
map
participants (1)
-
locilka@svn.opensuse.org